29

In Snow Leopard, to move a window to a different space, I had to use the mouse to select the window and use the keyboard to select the target space (e.g., ctrl + 1,2,3).

In Lion, what keyboard (maybe in slight conjunction with mouse as before) shortcuts can I use to move a window to a different desktop?

1
  • 3
    I'm still waiting for a keyboard-only solution for this that doesn't require third party software. Did you ever find an answer? My reply to the answer below helps some but still requires the mouse: apple.stackexchange.com/questions/43493/…
    – Mycah
    Commented Nov 29, 2018 at 18:30

4 Answers 4

24

Pressing the shortcuts for changing desktops while dragging a window should still work, but the shortcuts have to be enabled in System Preferences.

SizeUp supports for example assigning ⌃⇧→ to moving a window to the next desktop.

5
  • 5
    Yeah, it works, but Ctl and -> keys are on the opposite side of the keyboard. That means two hands are required. Clicking the mouse (or track pad) with my third hand is inconvenient. This can be done IFF you have a non-Apple keyboard.
    – Bruce
    Commented Jun 30, 2016 at 21:43
  • In Sierra using these shortcuts to move windows to another desktop produces annoying glitches. E.g. window will appear in both desktops.
    – mishap
    Commented Feb 6, 2017 at 21:56
  • @Bruce: I'm using Karabiner and have CapsLock+a mapped to left mouse button. Now I can click and hold with a keyboard shortcut (Caps Lock and a) and use Ctrl+<arrow> to switch to next desktop (or Ctrl+<num> to switch to specific desktop) and thereby move the window to that desktop, using a(n apple) keyboard only. (I've furthermore mapped CapsLock+j,k,l,i to arrow keys (in Karabiner, too). Thereby I can do this without leaving the homerow! These shortcuts comes in handy in a lot of situations! :) )
    – einjohn
    Commented May 5, 2018 at 16:13
  • 2
    Once you have these shortcuts setup you can click and HOLD in the title area of a window and press Ctrl+<#> or Ctrl+<left/right arrow> to bring your window along with you to another space.
    – Mycah
    Commented Nov 29, 2018 at 18:16
  • If there were a shortcut key to focus on an application than perhaps it could be paired with 'control + desktop #' to move the application to another desktop without requiring a third party application. Commented Mar 25, 2020 at 18:21
7

Here is a mouse-less solution, using BetterTouchTool. You can assign a keyboard shortcuts to move the windows across desktops. In my case I use ctrl+shift+arrow.

BTT config

4

You can also (without modifying system settings) click and hold the window, hold down the control button, and drag to the edge of the screen.

2
  • 5
    For me on sierra, this works even without holding ^ Commented Mar 19, 2017 at 14:27
  • Love this solution! I don't really care if I have to use the mouse or the keyboard, but I shouldn't have to use the mouse AND the keyboard. This works wonderfully. Thanks!
    – rinogo
    Commented May 19, 2021 at 0:17
-1

I wrote a blog post on how you can use a hammerspoon script to move windows around spaces with just shortcuts on macOS: https://konradstaniszewski.com/blog/windows-between-spaces

This is a small script, and can be customized to use whatever shortcuts you want.

1
  • 2
    Welcome to Ask Different. Thanks for self disclosing your blog relationship. Please ensure you place sufficient key points of an answer here so that people can understand your proposed solution.
    – bmike
    Commented Aug 24 at 1:02

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