3 ms·
> Many Wayland compositors provide an API to list the windows. KWin does as well (workspace.activeWindow, workspace.windowList).
by frankjr 3y ago
> Many Wayland compositors provide an API to list the windows.
KWin does as well (workspace.activeWindow, workspace.windowList).
- hobo_mark 3y agoI found no way of calling KWin functions other than piping javascript into dbus and parsing the reply via journalctl, which... lol? https://unix.stackexchange.com/questions/706477/is-there-a-way-to-get-list-of-windows-on-kde-wayland https://unix.stackexchange.com/questions/706477/is-there-a-w...
- frankjr 3y agoYeah, I think the way you're supposed to do that is you install the kwin script which gives you the option to "connect" to various signals and then communicate the results via dbus to your service / listener (I don't think the script itself can host a dbus service which would be much simpler). One thing I got from looking at this is that KDE's documentation about scripting is either absolutely terrible, insufficient, or non existing.