Skip to content

Hotkey In Wayland

Tom Watson edited this page Feb 23, 2021 · 5 revisions

Fedora and Ubuntu (since 21.04) use the Wayland session by default.

By design, Wayland prevents apps from registering global hotkeys. Until something is implemented to allow us to do that, you must manually add a shortcut that executes emote. In Gnome, you can add a global keyboard shortcut with the following steps:

  • Open "Settings"
  • Navigate to the "Keyboard" settings in the sidebar
  • Scroll down to "Keyboard Shortcuts" and press "Customize Shortcuts"
  • Select "Custom Shortcuts" and then "Add Shortcut"
  • Set a name, set "Command" to emote and choose your desired shortcut

For now, Emote works better under X11 - you can configure the global keyboard shortcut in the app itself and the app generally will respond to the shortcut more quickly. Emojis are also auto-inserted into the focussed app under X11. If desired, you can switch back to an X11 session like so:

  • Log out
  • Click name
  • Click on the gear icon in the bottom right and select "Ubuntu" (or similar). Whichever option does not say "Wayland".
  • Log back in
Clone this wiki locally