I assume you are running Unity. You need to:
- Install compizconfig-settings-manager
- Open it (it can be found by typing
ccsm
into the dash)
- Scroll down and in the "Window Management" section activate the "Put" plug-in by ticking the box next to "Put" (*)
- Press the "Put" button to configure the shortcut
- The settings you are looking for are Bindings > Put to adjacent viewport > Viewport left/right/top/bottom
- To avoid having the desktop chase every window you move (effectively reducing the effect of this option to "Switch workspace with window"), tick Misc. Bindings > Unfocus window
(*): Due to problems in compiz, at this step your screen is likely to freeze for anywhere between 5 and 30 seconds... just wait for your desktop to become responsive again. If you end up at a broken desktop, press Ctrl+Alt+F1, log in using your username and password and type DISPLAY=:0 unity --replace &
, then press Ctrl+Alt+F7 and everything should come back.
So as noted in Sathya's comment, he is running under Vmware.
The reason this doesn't work is because VMware Player is taking control of Ctrl+Alt, because that's the key combination it uses to "break out" of the VM.
There are two ways you can fix this:
Override
There is an escape override built into VMware which overrides the breakout combination, by tapping Space while holding down the breakout combination, before hitting your desired key So for example, if you wanted to go to the right workspace you would hold down Ctrl+Alt, tap Space and then tap Right.
Change the Combination
Change the breakout combination. To do this, edit preferences.ini (in Windows 7 it's in C:\Users\$YOUR_USERNAME$\AppData\Roaming\VMware
, if you can't find it search) and add:
pref.hotkey.shift = "true"
pref.hotkey.alt = "true"
pref.hotkey.control = "true"
This remaps the breakout combination to Ctrl+Alt+Shift.
Before you say anything, yes, I realise that this is also used in Ubuntu, to move windows between workspaces. Unfortunately, that is the best I've been able to come up with so far. You are supposed to be able to be as specific as left or right control, but they don't work for me, leftControl etc just maps back to both.
References:
Best Answer
super+Left Arrow
super+Right Arrow
super+Up Arrow
super+Down Arrow
Will snap to the half left, half right, full screen and the initially opened window position.