Issues with Albert hotkeys

Posted on

Problem :

Albert on some systems may have problems like this:

  • Setting a hotkey gets refused
  • A particular hotkey is not allowed
  • Hotkey issues on niche system XYZ
  • Can’t set single modifier hotkeys
  • The set hotkey does not work (Wayland )

What can one do about this?

Solution :

Qt does not provide systemwide hotkeys and hotkeys on Linux are cumbersome for several reasons. Especially emerging Wayland delegates hotkeys registration to the compositor, i.e. Gnome, KDE, …. Interfacing theses is too much to handle and does not generalize well. Therefore the native hotkey will be dropped. The general solution to these issues is to let your desktop environment register the hotkey and run the command albert toggle or albert show. For the major desktops you can achieve this by:

Gnome

  1. Navigate to Settings → Keyboard.
  2. Click + at the bottom.

See the Gnome docs

KDE

  1. Navigate to System Settings → Shortcuts and Gestures → Custom Shortcuts
  2. Click EditNewGlobal ShortcutCommand/URL.

See the KDE docs

Cinnamon / LinuxMint

  1. Navigate to System Settings → Keyboard → Shortcuts → Custom Shortcuts
  2. Click Add custom shortcut

Leave a Reply

Your email address will not be published. Required fields are marked *