Window management shortcuts?
- by pwnguin
I've got a single massive monitor at home, and I've decided to mimic the Windows 7 window tiling shortcuts. I found a few guides online using wmctrl, and it's going well, save one thing: maximized windows don't respond to it.
gconftool-2
--type string
--set /apps/metacity/keybinding_commands/command_1
"wmctrl
-r :ACTIVE:
-e 0,
0,0,
`xwininfo -root | grep Width | awk '{ print ($2/2)}'`,
`xwininfo -root | grep Height | awk '{ print $2 }'`"
(I've added line returns to make an otherwise massive one-liner readable.) I've bound this to a hotkey and it works, unless the window is maximized. Any ideas on how to fix this up?