Thursday, January 3, 2013

0 Enable Aero Snap (Ubuntu 10.10 & 10.04 only)

In Windows 7, you can click and drag a window to the left or right edge of the desktop and it will fill half of the screen, or snap a window to the top edge of the desktop and it will be maximized.
In Ubuntu 11.04, you can click and drag a window to the left, right or top edge of the desktop to achieve the same result, but in Ubuntu 10.10 or 10.04, you need some tweaking as follows.
  1. In addition to CompizConfig Settings Manager, install WmCtrl if not added.
    1. Go to Applications (or Main Menu) > Accessories > Terminal.
    2. Enter sudo apt-get install wmctrl
    3. Enter password when prompted.
  2. Go To System > Preferences > CompizConfig Settings Manager.
  3. Select "General" from the left panel and click "Commands".
  4. In Command line 0, 1 and 2, paste the following codes:
    1. 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
    2. 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
    3. Command line 2, paste wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
  5. In the same window, click "Edge Bindings" tab.
  6. Change Run Command 0, 1 and 2 from "None" to "Left", "Right" and "Top" respectively.
  7. Click "Back" button and select "General Options", change "Edge Trigger Delay" to about 500.
 

Kadublicek Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates