ActivityWatch / aw-watcher-window-wayland

Window and AFK watcher for some Wayland compositors
Mozilla Public License 2.0
57 stars 14 forks source link

Kwin marked as not working #30

Open Callen44 opened 1 year ago

Callen44 commented 1 year ago

Kwin, the KDE window manager and Wayland compositor, clearly does not work with this watcher when using it over Wayland. Further testing should be done to figure out more, I do not have the expertise required to figure out why, but it appears that Kwin does not support any of the protocols specified. As mentioned by @renyuneyun in ActivityWatch/activitywatch#92 it is possible to get the active window from kwin, but a great deal more work would be required to make this happen. It may be a bit different than just adding another protocol though as this dose not seem to be just a protocol that would be required.

2e3s commented 11 months ago

aw-watcher-window-wayland would need to be mostly rewritten for that, because KDE solution would need a completely separate KWin + DBus handler, also it uses an outdated Wayland crate with a very different interface.

I have implemented it for Wayland + KDE, but I was already aware of the issue and planned the code with independent adapters in mind.

cjc7373 commented 10 months ago

@2e3s Is there any chance that your implementation can be merged into this repo?

2e3s commented 10 months ago

@cjc7373 not really, my code is not based on this repository at all, so there is nothing to merge. Also this is "aw-watcher-window-wayland" while I intended to cover all Linux which includes X11, and later other platforms.