Window management shortcuts?
Posted
by
pwnguin
on Ask Ubuntu
See other posts from Ask Ubuntu
or by pwnguin
Published on 2011-01-19T03:57:20Z
Indexed on
2011/02/02
15:34 UTC
Read the original article
Hit count: 711
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?
© Ask Ubuntu or respective owner