16

I am looking for the keyboard shortcut of "Move to workspace Right/Left"

Like this:

Right

I'm using compiz cube, with 4 horizontal workspaces

(I'm not looking for "Move to another Workspace" shortcut)

iLQ
  • 446

7 Answers7

29

In Ubuntu 14.04 (and probably earlier versions), there is a default key-binding of Shift-Ctrl-Alt-[arrow]. E.g. to move the current window one workspace to the right, use Shift-Ctrl-Alt-Right.

The key-binding can be edited in Settings->Keyboard->Shortcuts->Navigation.

simonp
  • 423
  • 5
    In Ubuntu 16.04 Shift + Ctrl + Alt + Arrow is still working – Alleo May 20 '17 at 10:25
  • Not in Kubuntu 16.04... – kavadias Feb 16 '18 at 22:41
  • This is a lifesaver, the "Workspace Switcher" in 16.04 is super buggy and I'm terrified to use it. – Matt Jensen Apr 19 '18 at 00:48
  • 1
    It not working in ubuntu 18.04 with grid-enabled workspaces. Does anybody know hot to solve this in ubuntu 18.04 gnome environement? – Khalil Laleh May 28 '18 at 06:11
  • @KhalilLaleh I had an issue with Ubuntu 18.04 with Gnome on setting the split to left shortcut which didn't work even if it was set in Settings -> Keyboard. I had to see what command was also bound to this shortcut, and I was able to do it with: gsettings list-recursively org.gnome.desktop.wm.keybindings, then I had removed the responsive shortcut that was bothering me with gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['disabled']". You may also check out if you have other command bind to the shortcut you are trying to use. – user2111922 Aug 21 '18 at 09:26
13

I am using a probably an old styled shortcut, which is indeed simple.

I am using Desktop Wall instead of the Cube, which is awesome but I got tired of the cube, then I switched to Desktop Wall. Which features key bindings for "Move within wall", "Move with window within wall" and a few other. I have the default setup which includes Shift+Control+Alt+[Key] (left, right, etc.) in order to "move" the window to the desired wall. As shown here:

enter image description here

The Cube features the same binding options in the appropriate tab inside of the "Rotate desktop cube", which may be useful for you as you can define several combinations for your desired key bindings in order to move your windows to a specific Face (n) (of the cube).

enter image description here

If you are using more than a single horizontal workspace, then you probably have a 4 faces cube with dual workspaces, which means: only one cube, with selective workspace. This way, you can combine both the Desktop wall key bindings with the Rotate Cube key bindings in order to obtain the effect that you expect to.

But you should first check if the normal Shift+Control+Alt+[Key] (left, right, etc.) are doing the trick. Otherwise this workaround may be tricky for you. (not tested by me, I am not using the cube anymore).

WARNING: The "Move to another Workspace" option in the context menu is simply dropping the window to the chosen workspace leaving you in the current workspace. The "Move with window [...]" will make you "fly" to the given workspace with the window.

Good luck!

  • Thanks Geppettvs, but I'll stay with pablomme solution (: – iLQ Jan 27 '12 at 01:40
  • 1
    I think that this shortcut, Shift+Control+Alt+Arrow-Key has always worked from install. Up, down, left or right. – lqlarry Jan 27 '12 at 01:40
  • yes it does but I can't say for sure if it does on plain ubuntu installs with compiz. I am using a different distro. But thank you for the information @lqlarry – Geppettvs D'Constanzo Jan 27 '12 at 16:55
12

I assume you are running Unity. You need to:

  1. Install compizconfig-settings-manager
  2. Open it (it can be found by typing ccsm into the dash)
  3. Scroll down and in the "Window Management" section activate the "Put" plug-in by ticking the box next to "Put" (*)
  4. Press the "Put" button to configure the shortcut
  5. The settings you are looking for are Bindings > Put to adjacent viewport > Viewport left/right/top/bottom
  6. 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.

pablomme
  • 5,500
  • This one work fine, it just have 1 problem, when I move the windows to another workspace, the cube rotates following the window. Is there anyway to make it just move the window without moving into workspaces? – iLQ Jan 27 '12 at 01:29
  • 1
    Yup. CCSM > Put plugin > Misc Options > Unfocus window – pablomme Jan 27 '12 at 01:33
  • 2
    You no longer need compizconfig-settings-manager to do this. Ubuntu has default shortcuts and they can be edited in Ubuntu's "keyboard" settings panel. See my answer below. – simonp Jun 17 '14 at 08:04
2

Use gsettings not dconf, cf. https://kubos.cz/2018/07/19/ubuntu-18-workspaces-grid

e.g. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-right "['<Shift><Ctrl><Alt>Right']"

etc

Drew
  • 266
2

On Ubuntu 12 and above you do this in Settings->Keyboard->Short cuts->Navigation

uvasal
  • 513
1

You can use Shift + Ctrl + or Shift + Ctrl + in Ubuntu 14.04 LTS.

pomsky
  • 68,507
nsanchezb
  • 21
  • 2
0

In Ubuntu 16.04

  • Ctrl + ALT + 8 to go window up
  • Ctrl + ALT + 2 to go window down
  • Ctrl + ALT + 6 to go window right
  • Ctrl + ALT + 4 to go window left

enter image description here

Kulfy
  • 17,696