A C++ programming exercise/substitute for my fork of wofi-scripts windows.py window switcher for swaywm. Requires wofi and a modern C++ compiler.
The numbers at the end of every row in wofi are window id's. This is in case there is more than one window with the same title on the same workspace.
Uses Niels Lohmann's excellent json library.
Compile by hand with:
mkdir build; cd build
g++ -o sway_switch ../src/sway_switch.cpp
or with cmake:
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
cmake --build build
and copy to PATH
.