swayipc/main.cpp
2024-03-03 16:45:25 +01:00

13 lines
223 B
C++

#include <iostream>
#include "sway_bindings/swaymsg.h"
#include "sway_bindings/Sway.h"
int main() {
auto sway = Sway();
auto resp = sway.sendIPC(SWAY_GET_TREE);
std::cout << resp.msg << "\n";
return 0;
}