How to use aerosnap in linux(compiz)
Aero snap is the feature that is inbuilt in windows 7 and its really handy at times.
If you re using linux then you probably know that linux is godly for multitasking .
Being so highly dependent on coding and stuff makes linux highly customizable and make a operating system that’s all according to your likings.
So here we go-using aerosnap in linux
You need to have two files for using the aerosnap in linux
wmctrl
xdpyinfo-for the versions prior to karmic koala and x11-utils for karmic koala
Install them using your terminal or do it manually using the ubuntu tweak.
After installing the two applications mentioned above-go to your compiz confing settings manager and then to your commands
You will numbered boxes in these boxes copy and paste the codes given below according to their respective lines
code for command line 0-
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
code for command line 1-
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
code for command line 2-
wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
Now open the Edge Binding tab(in the top menu)
Under this tab select the following options from the drop down:-)
Run command 0 – set to left
Run command 1 – set to right
Run command 2 – set to top
Now go back and under the general display options-set Edge trigger delay to something around 450
This will prevent your windows from being areo snapped with even slight movements(may even irritate you)

