Possible Duplicate:
How to emulate winkey+arrow Windows 7's maximise shortcut keys?
I am trying Ubuntu and I want to have my windows snap to the left and right like Windows 7 when I use the hotkeys Window Key + Arrow. How can I do this?
I am trying Ubuntu and I want to have my windows snap to the left and right like Windows 7 when I use the hotkeys Window Key + Arrow. How can I do this? | ||||
feedback
|
This question came from our site for computer enthusiasts and power users.
This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.
|
One of the differences between most Unix window managers and Windows is that most Unix window managers offer resistance to the movement of windows at the edges of the screen. Therefore you don't need any special commands to move windows to the left or right edge of the screen; just drag one toward an edge and it will stop when it gets there. I don't know of any Gnome (the standard Ubuntu window manager for now) keyboard shortcuts that move windows. | |||
|
feedback
|
|
This is easy to enable from the CompizConfig Settings Manager. (Install it, if you haven't already). Then under Window Management, enable Grid. I've kept the default bindings of CTRL+ALT+NumPad but you can easily change it Super + Arrow as you prefer. | |||
|
feedback
|
|
Go here for full instructions in a human readable form from Mike's Ubuntu, (thank you Mike) and here is the original Ubuntu forum post (thanks gotsanity). I've checked this on my system so it should work for you. I've also added and edited a little to try to make it a bit easier to understand. The only changes I would make to his directions are that you first check to see if you have compiz installed (easiest way is to use the software manager and put "compiz" in the search window. If you do then type the following in a terminal:-
Otherwise the compiz settings manager won't be present on your system. Open a terminal and type:
It will display a list. Find your id number for your mouse. You will need this number in the next steps. Mine was 10. Yours will very likely be different.
Then type
A text editor will pop up. Paste this in, and then change your mouse id from 11 to the number from the output of the "xinput list" command. When you have done this, save the file.
Then, do the same for the other two scripts. (Not forgetting to change the mouse ID) compizsnap-right.sh Code:
And compizsnap-max.sh Code:
(Did you remember to change the mouse ID) Now we need to tell compiz how to behave when the mouse moves to the right, top and left of the screen. Run System > Preferences > CompizConfig Settings Manager. Go to the command section. Set the following:
In the Command 1 field:
In the Command 2 field:
Finally, go the edge bindings tab and set command 0 to left, set command 1 to right, and set command 2 to top. N.B. Compiz may complain that there are already functions set to the edge bindings you want to use - replace them with yours. | |||
feedback
|