Global hotkeys #1347
friday
announced in
Troubleshooting
Global hotkeys
#1347
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Global hotkeys is a problem which cannot be solved universally for all platforms on Linux.
Ulauncher version 6.x.x (currently in beta)
Ulauncher version 6.x.x supports setting global hotkeys for common Desktop Environments, by integrating with the Desktop Environments setting directly (supported for Gnome, KDE, XFCE, Budge, Pantheon aka Elementary OS). For other Desktop Environments that does not support this (like Cinnamon) or which we just haven't added an integration for, we will show instructions for the command you have to bind. You have to find out how bind it for that specific Desktop Environment.
Ulauncher version 5.x.x (and older)
Ulauncher version 5 implements hotkeys using libkeybinder. This only works on X11. For very valid security concerns, Wayland does not support applications listening to the keys the user types when it's not in focus. This however used to be the only way to support global hotkeys, and there are no replacements to this that works on all desktops.
libkeybinder can not override keyboard combinations set by the desktop environment. If you try to use for example alt+space and your desktop environment already has this mapped to something else, then you have to change it in your desktop hotkey settings, or use another hotkey for Ulauncher
For all these cases there is another way to add the keybindings yourself in the Desktop Environment or Window Manager settings:
ulauncher-toggle
to the hotkey of your choice. Note that before Ulauncher version 6 is release you will also need the commandwmctrl
installed if you are getting focus issues with this command.Gnome instructions
Settings > Keyboard
(may be named "Keyboard Shortcuts").Customize Shortcuts > Custom Shortcuts > +
.ulauncher-toggle
.Add
.More complex workflows
Additional non-standard customizations like dual-role keys or want to conditionally triggering the hotkey would have to be set up with more complex custom workarounds or third party tools/services.
For a table detailing general Wayland compatibility, see #1353
Beta Was this translation helpful? Give feedback.
All reactions