What is their ultimate target when people are using computer?
Productivity and efficiency, I think.
As a result, you must be interested in keyboard shortcuts, right? At least I do.
In my opinion, the most useful shortcuts would be the global ones, because you may use them no matter when and where in your system.

You might know there is a 'Keyboard Shortcuts' option in Ubuntu.
You can find it through 'System->Preferences->Keyboard Shortcuts'.
Within it, you can learn about or set some useful global shortcuts for your system, including 'Sound', 'Desktop' and 'Window Management' parts.
But the problem is, these options are pre-defined, which means you cannot choose your own applications or commands.
Shame, huh?

But I learned a trick today, which helps with it.
Let's take add 'System Monitor' for example, say, we want to use 'Ctrl+Alt+s' to launch the System Monitor.
These are what we would follow:

  • first of all, open your Configuring Editor, or run *gconf-editor* through 'Alt+F2';
  • In the left tree panel, try to locate 'apps/metacity/global_keybindings', you will notice that there are 'run_command_X' entries in it, where the X would represent number 1 to 12;
  • doubt click one of them, say 'run_command_1', and change its Value into '<Control><Alt>s' and save;
  • then in 'apps/metacity/keybinding_commands', change the Value of corresponding entry 'command_1' into 'gnome-system-monitor' which is the command of 'System Monitor';
  • save and exit 'gconf-editor'
  • now try to press the combination 'Ctrl+Alt+s', the System Monitor will say hello to you!
That is it, simple but useful, now I can combine global keyboard shortcuts to any applications, wonderful!

And surely you can do it through terminal:
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_1 "<Control><Alt>s"
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_1 "gnome-system-monitor"

and Attention:
You should avoid the shortcuts conflicts, which means you have to cancel the old one when you want to apply it to another use.


  1. Martin said...

    Awesome! I was looking for this several times already but always gave up too quickly.

    Thanks a lot buddy.  


Blogger Templates. Sponsored by Link Page Report Card