Create custom keyboard shortcuts in Linux
Most (if not all) users are aware of the ability to create keyboard shortcuts using the “Keyboard Shortcuts” menu in “Preferences.” However, most users are unaware that you can add any custom command to a keyboard shortcut in GNOME using gconf-editor. I will walk you through this process.
1. Launch gconf-editor by typing in a terminal gconf-editor.
2. In gconf-editor choose apps >> metacity >> global_keybindings.
3. In global_keybindings assign keyboard shortcuts (shown below).
4. Select keybinding_commands (right below global_keybindings in the metacity menu).
5. In keybinding_commands assign the custom commands you would like to launch with the keyboard shortcuts you created in step three. This is shown below.
Now whenever you type the keyboard shortcut you’ve created, your custom command will be launched.