Note: These details apply almost exclusively to the Gnome desktop as far as I’m aware, I don’t use KDE so I don’t know.

Fedora has the ability to set up some standard keyboard shortcuts via the Desktop > Preferences > Keyboard Shortcut menu (or run the command “gnome-keybinding-properties”). However, if you want to create keyboard shorcuts to custom commands, you need to delve into the world of the configuration editor (”gconf-editor”) which can be installed via “yum install gconf-editor” if you don’t already have it (I didn’t).

A little like the Windows Registry Editor, it allows you to modify settings for applications in one centralised location. Delve down into apps/metacity/ and then the two tabs of interest are global_keybindings and keybinding_commands.

By default, you have 12 commands configured called command_1 through command_12. You can set the keyboard shortcuts for these within preferences. To set the commands they correspond to, delve into keybinding_commands and edit the relevant values. You can enter commands as you would run them. For example, “gedit”, you don’t need the full /usr/bin/gedit path.

If you find 12 is not enough, you can simply create some more. Add an entry “run_command_XX” into global_keybindings and enter the relevant key combinations. Then add a corresponding “command_XX” entry in keybinding_commands with the command you want to run. XX should be a number above 12 as 1 to 12 are already taken.

That’s all there is to it!