Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Metacity and I tried combining 2 Window Keybindings
to one shortcut, essentially what I did was trying to create a
Keybinding Command (gconf.. /apps/metacity/keybinding_commands/)
Wrote there move_to_side_w | maximize_vertically .
Obviously that didn't work because its trying to run those commands
and they are only valid as window_keybindings...
Long Story short:
how do I combine 2 window_keybindings into 1 command ?
(I'm sure it is possible with the keybindings_commands...)

share|improve this question
up vote 0 down vote accepted

The closest I think you can get to such an end-result is to write a shell script that uses wmctrl to do those both, then assign a hotkey to that shell script (System->Preferences->Keyboard Shortcuts->Add).

share|improve this answer
That worked perfectly, wrote a shell script and everything, just one thing: is there a way to auto-detect the screen size (so the width size that I would give would be exactly half of the full width) ? – Asaf Sep 10 '10 at 0:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.