PDA

View Full Version : [ubuntu] A Dummys Guide To Set Up AERO SNAP from a newbie



verachion
February 5th, 2010, 02:03 PM
I started using Ubuntu 9.10 yesterday, If your anything like me and not to familiar with the scripting heres a simple step by step guide to get aero snap up and running.



Open the Compiz Config Settings Manager (ALT+F2 ccsm, system > preferences > CompizConfig…, etc)
Select the “Commands” option.
In 'Command Line 0' paste: -

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



In 'Command Line 1' paste: -

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



And in 'Command Line 2' paste: -

wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz

It should now look something like this: -


http://4.bp.blogspot.com/_FJH0hYZmVtc/Svlh2yB1vAI/AAAAAAAAEXA/uVUsry_y9b4/s400/screenshot_020.png (http://4.bp.blogspot.com/_FJH0hYZmVtc/Svlh2yB1vAI/AAAAAAAAEXA/uVUsry_y9b4/s1600-h/screenshot_020.png)


Now choose the 'Edge Bindings' tab at the top and set the following: -



Run Command 0 - Set To Left
Run Command 1 - Set To Right
Run Command 2 - Set To Top

Click on the back button and go to 'General options'.


http://3.bp.blogspot.com/_FJH0hYZmVtc/SvlijUh2yvI/AAAAAAAAEXQ/o6RxXA1kNIY/s400/screenshot_022.png (http://3.bp.blogspot.com/_FJH0hYZmVtc/SvlijUh2yvI/AAAAAAAAEXQ/o6RxXA1kNIY/s1600-h/screenshot_022.png)

Set the 'Edge Trigger Delay' to something around 400 - 500 by dragging the slider to the right.


http://4.bp.blogspot.com/_FJH0hYZmVtc/SvliiDlMICI/AAAAAAAAEXI/xUm8GGcNyRM/s400/screenshot_023.png (http://4.bp.blogspot.com/_FJH0hYZmVtc/SvliiDlMICI/AAAAAAAAEXI/xUm8GGcNyRM/s1600-h/screenshot_023.png)

Now all you have to do is drag a window to one of the specified sides and your window will automatically resize.

This is not my guide I found it here http://www.omgubuntu.co.uk/2009/11/aero-snap-ubuntu-linux.html

monkeybanana
March 10th, 2010, 12:13 PM
Hey there, I've tried this several times but it just won't work for me :(

I have Karmic installed on a new computer (Lenovo Thinkpad T400).