In Ubuntu 18.04.1, I would like to use my left Super-key only to simply open the Show Applications menu (aka Dash) like a left click on the dock-icon (with the 9 dots) does and preferably close it again without showing me any open programs.
I can open it with Super + A and even close it again with Super R, but Super L appears to do nothing at all.
In Xfce, something similar was possible by adding a custom keyboard shortcut for Super L and setting the command to xfce4-popup-whiskermenu
, which would open and close a menu with favourite applications. Unfortunately, I don't know the command that opens and closes the Show Applications menu.
Is there any way to add such a shortcut in the new Gnome Shell?
Solution 1: Gnome extensions
Install the extension Start Overlay in Application View to use the Super key alone to open the Application overview.
Solution 2: xcape (more universal approach that allows you to do whatever you want with super)
With the utility
xcape
, you can remap a press/release of the super key alone to any key combination.xcape
can be installed with the commandsudo apt install xcape
.In this case, you would launch
xcape
with the commandxcape -e "Super_L=Super_L|a"
. This will remap hitting and releasing super alone to the default key combination for opening the applications menu.gsettings set org.gnome.mutter overlay-key ''
, or usingdconf-editor
.xcape
autostart using a .desktop file that you place in your ~/.config/autostart folder.An example of such
xcape.desktop
file:Optionally, install the extension ESC to close overview from applications list to have Esc return you to your desktop rather than to the overview. In Ubuntu 20.04, use a forked extension: ESC to close overview from applications list | UPDATED by paperthin or ESCape Overview.
For Ubuntu 22.04 use these extensions:
Updated version of Start Overlay in Application View.
ESCape Overview: once application view is opened, you can skip it with Esc key.
You can also use
xmodmap
to change what a specific button would doxmodmap -e 'keycode 68 = Menu'
Here you can find which key triggers the Menu:
xmodmap -pke | grep Menu