views:

37

answers:

1

Is it possible to do the following in Ubuntu? If so can someone point me in the right direction.

Say you want to set a keyboard shortcut to do the following:

For examples sake, set Alt+F to open Firefox and maximize it, but only if Firefox is not already running. If it is running and not maximized, then maximize the most recently touched Firefox window. If it is maximized, then minimize Firefox.

Thanks, Joe

A: 
  1. Open GConf editor, go to apps -> metacity -> keybinding_commands, and now choose a command, for my example I choose command_1. Edit command_1 writing firefox in order to run firefox (or every command you want to launch).

  2. In the same direcrtory go to global_keybindings. Edit command_1 (or the command you choose in part 1) with the wanted shortcut like that : <Alt>f .

SoftwareJonas