Sunday, December 4, 2011

Adding universal shortcuts in ubuntu/gnome

 Adding universal shortcuts in ubuntu/gnome
  • Hit Alt+F2, enter the command gconf-editor and hit Run to launch the Configuration Editor
  • Navigate to apps->metacity->global_keybindings
  • For each keyboard shortcut you wish to add change the value of one of the run_command_x entries where x is a number between 1 and 12. Metakeys must be inserted between <>. For example the key combination Ctrl+Alt+1 you would enter as <Control><Alt>1. For the winkey use <Super>.
  • Navigate to apps->metacity->keybinding_commands
  • For each x you changed in the previous step change the value of the command_x key to the command you wish to be run when pressing the keyboard shortcut.
  • The keyboard shortcut should start working instantly.
Example: To make the keyboard shortcut Winkey+e start emacs do the following:
  • Navigate to apps->metacity->global_keybindings
  • Change the value of the run_command_1 entry to <Super>e
  • Navigate to apps->metacity->keybinding_commands
  • Change the value of the command_1 key to /usr/bin/emacs

No comments:

Post a Comment