66

I use spaces for having multiple desktops, but often need to move a program from one space to another.

I am aware of the various ways to do that with a mouse:

  • Click-and-hold on the title bar of window and drag to edge
  • F8 to show all Spaces and drag to desired location
  • Click-and-hold on the title bar, and use Ctrl+# or Ctrl+Scroll Arrow

But have not been able to find a keyboard-only method. I use Linux for one of my primary workstations which has this ability and I would LOVE to use it with OSX as well.

  • possible duplicate of What Window Management Options exist for OS X? – user588 Mar 5 '11 at 18:09
  • Hey nice, the question I have and its answer are all here in your question! I just want to know how to move an app to another workspace, whether or not it uses the mouse. – DarenW Jul 21 '11 at 17:22
  • That "click & ctrl-#" trick is very usefull anyway. Thanks a lot. – user18628 Feb 12 '12 at 12:09
  • 1
    "Click window and use" - you have to press and hold the window, clicking is technically incorrect. – Sufian Apr 8 '15 at 6:06
30

While dragging a window, press key combo to move window to numbered space:

  • Control + 1
  • Control + 2
  • Control + 3
  • etc ...

EDIT: For Lion, I had to go to System Preferences -> Keyboard -> Keyboard Shortcuts -> Mission Control and enable these hotkeys.

  • 8
    This just moves the screen to another space, you actually have to click the window with the mouse and then use that shortcut to move the window. – Winder Sep 14 '10 at 11:56
  • How right you are :) Answer updated. – Nippysaurus Sep 15 '10 at 3:16
  • Not working on Lion! :( – Atul Goyal Feb 22 '12 at 16:01
  • This method works fine for me with Mavericks and worked fine with Mountain Lion. The key is defining the shortcuts to jump to specific spaces (as @Nippysaurus said). – mjturner May 6 '14 at 19:16
  • 20
    Are you high? He said "without using the damn mouse", arghh – YemSalat Nov 5 '14 at 22:39
17

SizeUp

You could have a look at SizeUp, which has been recommended on apple.se at least once before - it has some nice keyboard tools for throwing windows around multiple monitors (as I use it) and also for throwing them around multiple 'spaces'.

It's not free, but it's very useful and certainly worth the small registration fee.

  • This is what I use and it’s great. – Martin Marconcini Sep 15 '10 at 8:22
  • 1
    Ah, been using Sizup for some time (to mimic Aero snap), and didn't know this. Very useful. And indeed worth the registration fee. – Rabarberski Dec 22 '11 at 19:51
  • 2
    I tried SizeUp but it takes like a full second to move a window to another space. This is unacceptable :[ – Brian Gordon Jan 21 '14 at 0:04
  • There's also a free alternative, Spectacle, although it doesn't have an option for multiple spaces. Works on well for multiple displays though. – Pranav 웃 Mar 4 '15 at 9:39
  • Year later SizeUp still has one second delay when switching spaces. I suspect it's because OS X has no public API for this and they are doing some hackery to work around the limitation. – Wojtek Kruszewski Oct 7 '15 at 11:56
7

Amethyst

With Amethyst, you can send windows to specific spaces using configurable keyboard shortcuts. One possible setup is:

  • Command + Control + 1   [send to Desktop 1]
  • Command + Control + 2   [send to Desktop 2]
  • Command + Control + 3   [send to Desktop 3]
  • and so on . . .

By default, Amethyst automatically tiles your macOS windows. If you do not want automatic tiling or the extra layout features that Amethyst provides, then add "floating" to Layouts under Preferences and remove all other layouts. Also, disable any keyboard shortcuts you do not need under the "Shortcuts" tab.

  • 1
    On the off chance anyone's looking at this thread years later, try Amethyst with BetterTouchTool (paid). Changed my life. The BetterTouchTool 'keyboard gestures' can be set up to do Ctrl+Alt+Shift+L/H to send a window one space to the right/left respectively; this complements the normal shortcuts perfectly. Then set up trackpad or magic mouse gestures to perform the Amethyst shortcuts, like TipTaps for resizing the main window, or my favourite, 'two finger touch top' to left click and then set current window to main window (alt-shift-enter). Beautiful. – zelk Mar 14 '16 at 15:29
  • Thanks for the tip @cormacrelf. FYI Gnome 3 does this all this stuff very elegantly out of the box. It's annoying that Apple makes us download multiple 3rd-party apps. – Gabe Kopley May 4 '16 at 23:04
5

BetterTouchTool: free and does the job plus a lot of extra ;) I use it in combination with ShiftIt for window resizing.

  • a great tool, but no longer free. Still well worth the few dollars, though. – iconoclast Mar 8 '16 at 18:57
  • ShiftIt is kind of dead now but I fully replaced it with BTT. – AsTeR Feb 22 '18 at 14:07
0

There is one built in way to do this without using the mouse. It involves using the Mouse Keys, so this is really only a good option for when you have a full external keyboard connected.

Steps:

  1. Enable Mouse Keys if it's not already enabled (the standard shortcut is hitting the left option button 5x)

  2. Use the numeric pad to position the mouse pointer on the menu bar of the app. Use the #5 key to click, then hold that, and make the window drag a little by clicking one of the other numbers (the directional keys)

  3. Then, once that mode is active, you can stop dragging (but hold the mouse key #5 down), and use the Ctrl-Left/Right shortcut and the window will follow

For more on using Mouse Keys - https://support.apple.com/en-us/HT204434#mousekeys

-1

Shiftit is awesome...

I use shiftit which is an open-source tool for resizing/moving windows.

To move a window you can click_hold_window + CTRL + space_number

  • 2
    Welcome to Ask Different! Please refrain from 1-sentence answers. We're trying to find the best answers and those answers will provide info as to why they're the best. Short answers like this don't explain why they're the best approach or the best tool. Also, providing a link to the tool can be very helpful to the OP. See How to Answer on how to provide a quality answer. - From Review - – fsb Aug 18 '16 at 16:42
  • How do you "click_hold_window" without using the mouse? – Elezar Jan 14 '17 at 23:01
  • 1
    Elezar, ShiftIt requires the mouse... – Andrei Sura Jan 16 '17 at 15:10
  • Requires mouse, moves between screens, not spaces, which is what the question asked. – Benjamin R Sep 13 '17 at 3:21

You must log in to answer this question.

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