Hi all!
I use Red Hat Linux 9 with Gnome 2 and till now I was using Sawfish as my window manager instead of Metacity for the following reasons:
1) Metacity doesn't allow "Always on top" kind of functionality 2) Metacity doesn't have kbd shortcuts for running arbitrary commands 3) The close button is right next to maximize so I occasionally ended up closing a window when I meant to max/minimize it.
Well, I figured out how to get 2 & 3 done. Fire up Gconf Editor (run command "gconf-editor") and navigate to apps > metacity > general. To modify the ordering of buttons change the value of "button_layout" parameter. Look at the "Key Documentation" pane for information on how to set the values.
For mapping commands to keyboard shortcuts, first define commands in apps > metacity > keybinding_commands. You'll find keys like "command_1" through "command_12". Set their values to the commands you want to run. Next, go to apps > metacity > global_keybindings and set the keyboard shortcut for each command_.? as the value of its corresponding run_command_.? key.
For example, to lock the screen using key combination Ctrl+Shift+l, do this:
- Go to apps > metacity > keybinding_commands - set value of command_2* to "xscreensaver-command -lock" (without quotes) - go to apps > metacity > global_keybindings - set value of run_command_2 to "<Ctrl><Shift>l" (without quotes, with angle brackets) - try Ctrl+shift+l to test your new setting :)
* command_1 was set to allow logging off using the Ctrl+Alt+Del key combo, but I suspect it was due my prefs that I set earlier.
HTH