SafeEyes icon indicating copy to clipboard operation
SafeEyes copied to clipboard

Smartpause: add support for ext-idle-notify-v1 using pywayland

Open deltragon opened this issue 9 months ago • 12 comments

Fixes https://github.com/slgobinath/SafeEyes/issues/391.

This is an alternative to https://github.com/slgobinath/SafeEyes/pull/553. Instead of relying on swayidle, which appears to have issues both on KDE as well as within Flatpaks, this PR uses pywayland to use the ext-idle-notify-v1 wayland protocol directly.

Tested on KDE Plasma 6.0 Wayland. This still needs to be tested on compositors that do not implement the ext-idle-notify-v1 protocol. According to this, this would be Weston, Mir or GameScope. (Gnome still has its own solution.) The plugin will not work correctly on these compositors, but we should probably give a better error.

deltragon avatar May 17 '24 14:05 deltragon