-
I have a viewport with my IDE open and on the viewport on the right I have the browser, when I change a file and save the browser updates. What would be the best way of detecting viewport changes in wayfire? The only thing I can think of right now is using IPC but I'm trying to find out if there is an easier way to do that. Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
IPC is probably the best way to go, especially if you're using latest wayfire. You can use |
Beta Was this translation helpful? Give feedback.
IPC is probably the best way to go, especially if you're using latest wayfire. You can use
sock.watch["wset-workspace-changed"]
to receive this data set. For this to work, you will need to enable ipc and ipc-rules plugins, and install pywayfire with python pip. The other way is to write a wayfire plugin which callswf::get_core().run(cmd);
when it gets thewf::workspace_changed_signal
signal internally.