Install compizconfig-settings-manager . Search for "compiz" in the Unity Dash, or start with ccsm
from the commandline.
Warning
CompizConfig Settings Manager (ccsm
) is an advanced tool, and not all of its options are completely compatible with Unity.
As such, CCSM has been known to sometimes break users'
desktops. Please use caution and
know that you are taking a risk by following this answer or any other
answer that recommends the use of CCSM. In the event that following
this advice does break Unity, please see this
question for instructions on how
to reset it.
Find the Grid plugin:
Click on the key binding you want to change, click on Grab key combination, and press the keys you'd like to use.
Desktop environments supporting Super+number
These support task switching via Super+number out of the box, and require (almost) no configuration.
KDE Plasma
This was implemented in Plasma 5.9. You still need to uncheck "Keep launchers separate" in the Task Manager Settings to preserve the 1..9 order, otherwise the numbers will be reassigned as you close/open the applications.
GNOME 3 (Ubuntu 20)
GNOME implemented Super+N app switching in Jan 2019. Here's a screenshot of GNOME 3 in Ubuntu 20:
Ubuntu 18 GNOME
Ubuntu's tweaked version of GNOME supports Super+number, with one annoyance: when switching to an application with more than one window (often the case with Chrome/Firefox), you have to further choose which of the windows to switch to.
Unity (Ubuntu 16)
Supports the key combo by default. If the app is running, Unity will switch to it. If it isn't, it will be launched.
Linux Mint Cinnamon
As of version 20, Cinnamon supports Super+number for the "Modern" panel layout.
The feature isn't very discoverable because Cinnamon doesn't show any number tooltips over the taskbar icons when you press Super.
Note that the feature was tricky enough to take years to implement after it was first requested in 2015, then by myself in 2016.
DEs with support via extensions/plugins/applets
Note that letting plugin authors build such a feature is fraught with problems. In several years, I haven't found any plugin/extension/macro/whatever that gets this right. This sort of feature needs to be well-integrated into the window manager, and this was confirmed by one of the authors of MATE Desktop, who agreed with me.
DEs that don't support Super+number out of the box
Best Answer
Your Super key can switch from performing as expected when your keyboard mode switches from raw. (Good explanation of the differences between keyboard modes can be found here). This occurred to me after using the Magic SysRq key to switch the keyboard from raw mode while my system slowed while paging memory.
You can check what mode your keyboard is in with
sudo kbd_mode
and if it is not in raw change it back withsudo kbd_mode -s
. Full info at https://linux.die.net/man/1/kbd_mode