Friday 19 November 2010

Enabling "Aero Snap" in Ubuntu 10.04 LTS

Nothing else to say everything is on the video:




Remember to install wmctrl which is needed to make this work:
$ sudo apt-get install wmctrl
Here are the command lines:

Command line 0:
wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x'` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,0,0,$HALF,-1

Command line 1:
wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x'` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1

Command line 2:
wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz

Command line 3:
wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz
blog comments powered by Disqus