I found the basic solution at Get Aero Snap in Ubuntu
The instructions as given did not quite work for me so I just hardcoded in the width of my screen:
WIDTH=1920 && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,0,0,$HALF,-1 WIDTH=1920 && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1 wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz
Note that I did not need to change the last entry for going full screen. Then under the General Options of the Compiz Settings Manager I just mapped Key Bindings rather than Edge Bindings.
Command 0 to Windows Key + Left Arrow
Command 1 to Windows Key + Right Arrow
Command 2 to Windows Key + Up Arrow
Well done. I'm on 11.04. The aero snap is great; this completes the pie.
ReplyDeleteCompiz... same but more. This is cool though if you don't want to install Compiz...
ReplyDelete