ydotool
ydotool copied to clipboard
Silently run xinput due to warnings for (X)Wayland users
I considered to go for WAYLAND_DIPSLAY envvar, but that's not exactly there if we're running as root, which is mostly needed for the daemon. Also considered another ways which would not be reliable... At least not as much as xinput itself does, using Xlibs, which seemed overkill for this situation.
So I went with running it silently, so we know that won't hurt the functionality, it'd just not work. I could also use xinput to first check if we were into a (x)wayland session, but that would only make twice the call which is not really needed.
Currently there's no standard way among the compositors to check if we're in a session (AFAIK). Feel free to let me know if there's a better way.
Closes #205