I wanted to set three shortcut combos that I use in Windows all of the time. After a bit of work I managed to get all three defined. Here are the shortcut keys I wanted to ma:
- Super Key – L -> Lock the screen
- Super Key – C -> Open shell
- Super Key – E -> Open Nautilus
The first thing you need to do is to enable the Super Key (I.e. the windows flag key) to work as a meta key (e.g. alt, super, ctrl). To do this select:
System - Preferences - Keyboard- Select the
Layoutstab - select the
Layouts Options...button. - Expand the
Alt/Win key behavioroption - Select
Super is mapped to the Win-keys.
The shell shortcut is easy. This can be added by doing the following:
System - Preferences - Keyboard Shortcuts- In the desktop section select
Run a Terminal - Hold the
Super Keyand theckey - Select the
Lock Screenand delete the existing mapping
For some reason the Home Directory and Lock Screen selections don’t work. You can map them, but nothing happens. I found a way around using gconf-editor. It takes a few steps, but it gets it done.
- select
Alt-F2and entergconf-editor - select
apps - metacity - global_keybindings - run_command_1to<Mod4>L - select
apps - metacity - global_keybindings - run_command_2to<Mod4>E - select
apps - metacity - keybinding_commands - command_1tognome-screensaver-command --lock - select
apps - metacity - keybinding_commands - command_2tonautilus
Now exit the Configuration Editor and that’s it.
Update: Just found a bug report on this on Launchpad. Looks like gnome does not like super-L, and super-E. Other keys seem to work. Odd, eh? Link