Add evdev hotkey backend for Wayland compatibility on Linux

On Wayland, XGrabKey via XWayland is not forwarded by most compositors.
The new Linux implementation tries evdev first (works on Wayland and X11
without compositor-specific support — requires 'input' group or systemd-logind
seat ACLs, which GNOME/KDE grant automatically). Falls back to X11 XGrabKey
for plain X11 sessions or when evdev devices aren't accessible. The log now
records which backend was selected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 19:55:49 +03:00
parent 6c56192141
commit 72f3ddde5f
2 changed files with 189 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build !windows
//go:build !windows && !linux
package main