Scripting

Gconf Key Bindings

Examples of the main ways you can set up keybindings in gnome/compiz


# Using metacity / Compiz
gconftool-2 --type string --set /apps/metacity/global_keybindings/run_command_9 "<Shift><Super>Left"
gconftool-2 --type string --set /apps/metacity/global_keybindings/run_command_10 "<Shift><Super>Up"
gconftool-2 --type string --set /apps/metacity/global_keybindings/run_command_11 "<Shift><Super>Down"
gconftool-2 --type string --set /apps/metacity/global_keybindings/run_command_12 "<Shift><Super>Right"

gconftool-2 --type string --set /apps/metacity/keybinding_commands/command_9 "window_snap left"
gconftool-2 --type string --set /apps/metacity/keybinding_commands/command_10 "window_snap up"
gconftool-2 --type string --set /apps/metacity/keybinding_commands/command_11 "window_snap down"
gconftool-2 --type string --set /apps/metacity/keybinding_commands/command_12 "window_snap right"

#Using Generic Gnome
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch1/name "firefox"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch1/action "rof firefox"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch1/binding "<Mod4>1"

gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch2/name "thunderbird"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch2/action "rof thunderbird"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch2/binding "<Mod4>2"

gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch3/name "terminal"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch3/action "rof 'gnome-terminal'"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch3/binding "<Mod4>3"

gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch4/name "eclipse"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch4/action "rof eclipse"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch4/binding "<Mod4>4"

gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch4/name "gnote"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch4/action "rof gnote"
gconftool-2 --type string --set /desktop/gnome/keybindings/quicklaunch4/binding "<Mod4>5"