I just upgraded to ubuntu 11.04, and I am looking for a good way to tile windows. What I need is just to move window to the left or right half side of the screen, and bind the actions to some keyboard shortcuts. For instance move-window-to-display.sh contains


if [ $1 -eq 2 ]
    POS="950 0"
    SIZE="967 1031"
    POS="0 0"
    SIZE="965 1031"

xdotool windowmove `xdotool getwindowfocus` $POS
xdotool windowsize `xdotool getwindowfocus` $SIZE

exit 0

Then ". move-window-to-display.sh 1" moves the window to the left and ". move-window-to-display.sh 2" to the right. However, this code works but not perfectly, because of xdotool I guess, anyway it is not easy to put the windows at the exact position that we want.

So does anyone have a better way to do this? Either by Shell or by other tools... I tried tiling window manager like xmonad, but it seems too complicated to use...

Thank you very much

1 Answer 1


You can achieve this in Compiz, the default window manager.

First, launch CompizConfig Settings Manager by pressing super+a or by clicking on the applications icon then typing 'compiz config' and selecting 'CompizConfig Settings Manager'. If it is not installed, the Software Centre will open so you can install it.

launch ccsm

Then, click on 'Grid' in the window management section.


You can then configure the key bindings for putting the window to either side of the screen.

enter image description here

Click on the description of each key binding to change it.

enter image description here

  • That is awesome!!!
    – SoftTimur
    Apr 29, 2011 at 17:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .