Usually in Gnome and KDE it is only possible to define shortcuts with the Super key in combination with another key. But is it possible to use only the Super key as a shortcut, and how could I achieve this?
The Super key is a so-called modifier key, i.e., it is only meaningful in combination with some other key (it "modifies" the other key to report Super+key instead of just key). This makes it impossible to bind it to a shortcut with the System->Preferences->Keyboard shortcuts GUI without a tweak.
You can tell the system to not consider Super a modifier key any longer; then you will be able to map it to any shortcut you want.
In a terminal, type the command
xmodmap; it will output a few lines -- look for the one that has
Super_Rin it. It should look like this:
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce)
mod4at the beginning of the line? That means that
Super_R(left- and right- Super keys) are bound to the 4th modifier (there are 8 in total).
If you want to be able to bind the
Super_Rkey, give the command (note the quotes!):
xmodmap -e 'remove mod4 = Super_R'
This tells X11 that right-Super should no longer be a modifier.
Note: These settings will not survive a reboot; you can make them permanent
by creating a text file
.Xmodmap in your home directory, and writing a single
line to it:
remove mod4 = Super_R