ActivityWatch / aw-watcher-window-wayland

WIP window and afk watcher for wayland
Mozilla Public License 2.0
56 stars 13 forks source link

Request for Hyprland Compatibility - Idle.xml Protocol Present #34

Open ibrahimkettaneh opened 7 months ago

ibrahimkettaneh commented 7 months ago

Dear Development Team,

Firstly, I would like to express my gratitude for your work on the time tracking application. The client-server model, along with the ability to track browsing activity and file edits, is truly commendable.

However, I am encountering an issue with the standalone watcher for Wayland when using it on the Hyprland compositor. Despite Hyprland implementing the idle.xml protocol (as seen here: https://github.com/hyprwm/Hyprland/blob/main/protocols/idle.xml), the watcher does not seem to function as expected.

Here is the error message I receive:

Setting up display
Fetching wayland globals
Setting up toplevel manager
Setting up idle timeout
thread 'main' panicked at src/idle.rs:79:10:
Wayland session does not expose a Idle object, this window manager is most likely not supported: Missing
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I would greatly appreciate any assistance or guidance you could provide to resolve this issue. Your continued efforts and contributions to this project are highly valued.

Thank you in advance for your time and support.

ErikBjare commented 7 months ago

Not sure why this doesn't work. Looks like it's using the Kwin idle protocol, which should be supported.

If you don't want to wait: awatcher supports both Kwin Idle and idle-notify, and explicitly supports Hyprland: https://github.com/2e3s/awatcher

ibrahimkettaneh commented 7 months ago

I greatly appreciate your assistance, your suggestion has successfully resolved the issue! Your contribution and work are highly valued. If there's ever a need for testing support, I'd be more than happy to help.

At this point, my requirements have been fulfilled. If you choose not to continue with hyprland support at this time, feel free to close this issue. Alternatively, if there's any way I could assist with testing, I'm open to keeping this issue active. Thank you! :grin:

sophronesis commented 3 months ago

Same exact error. Is there is a way around this error?

sophronesis commented 2 months ago

https://github.com/2e3s/awatcher fixes this somewhat