Skip to content

Hotkey Not Working on Linux Wayland

Hermes Agent edited this page Jul 9, 2026 · 4 revisions

Hotkey Not Working on Linux Wayland

This page documents a known issue where LazyTyper's global hotkey fails to trigger on Linux systems running Wayland display server, along with the root cause analysis and solution.

User Feedback (Original Report)

Environment: Zorin OS 18 (noble), GNOME Shell 46.0, Wayland session, LazyTyper v1.8.7

Symptom: Pressing the configured hotkey (Alt+Win) does nothing - recording does not start.


System Environment

Item Value
Kernel Linux devhost 6.14.0-33-generic x86_64
Distro Zorin OS 18 (noble)
Desktop GNOME Shell 46.0
Session Wayland
Desktop Session DESKTOP_SESSION=zorin, XDG_CURRENT_DESKTOP=zorin:GNOME
User / Group uid=1000(dev), member of input group (gid=995)
Input Device Perms /dev/input/event* owned by root:input, mode 660
LazyTyper Version 1.8.7

A later solved report confirmed the same /dev/input permission family on Manjaro/Arch Linux + KDE Plasma + Wayland with LazyTyper 1.8.7. In that case the app started normally, but global hotkeys silently did nothing until the user joined the input group and restarted the login session. Source: LazyTyper-releases#191.

Root Cause

Two common issues can cause the failure:

1. Alt+Win (Option+Command) incompatible with Wayland + GNOME

LazyTyper maps Alt+Win internally as Option+Command. On Wayland + GNOME:

  • The Win/Super key is heavily used by the desktop environment and may be intercepted before reaching applications
  • LazyTyper's Linux hotkey listener reported:
    Failed to register shortcut Option+Command via linux hotkey listener: UnsupportedKey("Command")
    

Conclusion: Avoid using Win/Super as part of a global hotkey on Linux Wayland.

2. input group permission not active in current session

Even after switching to a compatible hotkey (Ctrl+Alt+Space), the hotkey still did not work. The log showed:

evdev: no keyboard devices found yet in /dev/input

The cause:

  • /dev/input/event* devices require input group membership to read (permissions: root:input 660)
  • The user had run sudo usermod -aG input $USER, but did not log out and back in
  • The LazyTyper process was still running in the old session, which did not inherit the new group membership
  • Attempting to open /dev/input/event3 or event0 directly returned Permission denied
  • Running sg input to temporarily switch groups confirmed access was possible

Solution

Step 1: Ensure input group membership

sudo usermod -aG input $USER
# Arch / Manjaro users can also use:
# sudo gpasswd -a "$USER" input

Step 2: Log out and log back in (or reboot)

This is critical. Group changes from usermod -aG only take effect in new login sessions. Simply restarting LazyTyper in the same session is not enough.

# Verify group membership after re-login
groups
# Should include "input" in the output

Step 3: Restart LazyTyper

After logging back in, launch LazyTyper. The hotkey should now work correctly.

Verification

After completing the steps above:

  • Ctrl+Alt+Space triggers recording as expected
  • LazyTyper log shows successful shortcut registration and keyboard device detection

Troubleshooting Checklist

If you encounter similar hotkey issues on Linux Wayland, check these three things in order:

  1. Log recognition - Does the LazyTyper log show the target shortcut being processed? Check ~/.local/share/com.lazytyper.desktop/logs/ for entries like Processing config: keys=...
  2. Device permissions - Can LazyTyper read /dev/input devices? Look for evdev: no keyboard devices found in logs
  3. Session freshness - Was LazyTyper started in a session created after the usermod -aG command? If not, log out and log back in

Recommendations

  • On Wayland, avoid Win/Super as a global hotkey modifier - it is unreliable due to desktop environment interception.
  • On KDE Plasma / Manjaro / Arch-like systems, if LazyTyper starts but hotkeys silently do nothing, first check whether logs contain evdev: no keyboard devices found or whether the user is missing the input group.
  • After any usermod -aG change, always log out and log back in before testing.
  • GNOME may also reserve Alt+Space for the window menu (org.gnome.desktop.wm.keybindings activate-window-menu), so check for conflicts with:
    gsettings list-recursively | grep keybinding

Contributor: VAN

Clone this wiki locally