-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xprintidle
does not work on wayland
#7
Comments
this is documented. unfortunately, I'm not aware of an alternative. |
Yeah this is something I'm not really sure of a proper way to do it on Wayland, there's no API for it. Relevant links:
However, it is possible to implement DE-specific solutions, which I'd rather avoid given this repo is meant to be as abstracted as possible, but given the choice right now is X11 or macOS, it wouldn't really hurt to implement an option for Gnome / KDE APIs For kwin (KDE) and Sway:https://wayland.app/protocols/kde-idle I don't reallllly see an easy way to access this on a CLI/shell, the easiest solution would to make For Mutter (Gnome):It's not as straightforward documentation-wise but this also exists as an implementation in the compositor: This stackoverflow answer gives an example of a way to access the OzoneThe Ozone project has had a low-level implementation of this since 2020, which I wasn't really aware of at the time of writing WayidleAnd finally, I'd like to mention another potential contributing solution I found while researching this just now, this seems to be generic to Wayland compositors in general, and either calling this through the script as an alternative to |
This, but calling If that solution is acceptable to OP, I can get started on getting a working prototype out that they can use in the meantime. |
Hm. Yeah I'm not seeing a nice way to get it working without DE-specific tweaks, which is why I linked multiple potential solutions rather than a clear one, but it depends on whatever path we end up going with replacing the unix scripts or keeping them instead of as a tool that's part of the Rust impl. |
I took a stab at this, and it turns out that having multiple code paths for different DEs really adds up. There are also assumptions to be made, or left as configuration (e.g. should we look at the first available seat? All seats?). Pulling in |
see title;
xprintidle
outputsscreen saver not supported
when run under wayland, breaking if expressionThe text was updated successfully, but these errors were encountered: