17

I use F12 key to open guake terminal. Whenever I press F12 key it doesn't work. However, no function keys are working if I am at desktop or at file manager.

Is there any solution for it?

Thank you.

Serg
  • 808

4 Answers4

24

The reason that it does not work is because Ubuntu now is running on Wayland instead of Xorg. One of the security measures of Wayland - which in fact is crippling functionality - is that applications are not anymore allowed to globally listen for shortcut keys.

Some applications cannot run on Wayland. For these, Wayland provides an emulation layer, xwayland. As long as an application running on xwayland is in the foreground, your function key will work. If a native Wayland application is in the foreground, your function key will not work.

There are two possible options

Option 1: Check whether Guake terminal provides a command line option to have it open/close. A very quick search learned me that there is an -s or --show-hide option. Remove the hotkey setting within the preferences of Quake itself, and instead create a shortcut in "Settings" - "Keyboard shortcuts" where you specify the command guake -s.

Option 2: Log in on an Xorg session instead. All will work as previously.

vanadium
  • 97,564
8

As say @vanadium in my case it was cleaning guake preferences for toggle shortcut and create a new one on gnome settings -> keyboard -> keyboard shortcuts and creates a shortcut for command guake -t

2

This article gives a pretty simple solution (along with the same explanation as vanadium gave). It only requires you to add a custom shortcut in gnome's control panel that triggers the guake-toggle command.

0

Set up a custom shortcut in gnome for guake-toggle