94

In OS X as I'm aware to move the current window to the next desktop, I'd click down on the title bar of the window to have it in move mode, and then while keeping the mouse button down, press ctrl-<cursor direction_key>. If you don't have a laptop, this may require three hands. Alternatively you can go into spaces and drag a window from one desktop to another.

Is there an easier way to do this, with the keyboard only (and two hands max)?

migrated from stackoverflow.com Sep 4 '10 at 19:44

This question came from our site for professional and enthusiast programmers.

12 Answers 12

46

As of 10.7 you can activate "mission control" and then drag-n-drop your window to whatever desktop group.

enter image description here

See: OS X Mountain Lion: Work in multiple spaces

  • works on OSX 10.8.4 – AWrightIV Aug 1 '13 at 0:05
  • 1
    @AWrightIV This has worked since Leopard. – Blacklight Shining Oct 30 '13 at 13:47
  • 57
    The question specifically requests answers that don't require mousing. – jtheletter Sep 9 '15 at 17:22
  • 1
    CTRL+UP works on a windows/generic keyboard to open mission control. – JPhi1618 Nov 2 '16 at 14:50
30

I think the best you can do is hold the window title bar with the mouse, then press Ctrl-1 (or 2, 3, 4, whatever). This requires using the mouse, but it's a little more convenient than other methods.

  • 5
    does not work on OSX 10.8.4 – AWrightIV Aug 1 '13 at 0:06
  • 3
    @AWrightIV: It works on OSX 10.7. I'm not sure about 10.8 but you might have to enable the Ctrl-1 and Ctrl-2 shortcut key for switching desktops first under System Pref > Keyboard. That could be a reason for it not working. – lightalchemist Nov 2 '13 at 9:14
  • Perfect, exactly what I was looking for – Kevin Hooke May 28 '16 at 2:30
  • on 2017 this still is a great alternative. Even when you need to use the mouse its a lot more convenient than the rest – mjsr Jun 28 '17 at 14:40
12

If you install "BetterTouchTool", you can create a keyboard/mouse/gesture shortcut to either:

  1. move application window to the other monitor,
  2. maximize application window to the other monitor.

Works really well! Plus, "BetterTouchTool" has tons of other nifty features that you may find useful. It's free.

  • I already use BetterTouchTool and thanks to this suggestion I mapped a keyboard shortcut that moves the current window from one monitor to the other. Thank you! – Robin Zimmermann Jul 15 '14 at 17:50
  • 1
    BTT is great and has moved to a "pay what you want" license scheme, but is no longer totally free. – JPhi1618 Nov 2 '16 at 14:51
  • 4
    BetterTouchTool is awesome, but the question is about moving to another DESKTOP, not another monitor! – iconoclast Mar 10 '17 at 22:53
8

Unfortunately, as of 10.5.4 at least, there is no way to do this using a keyboard shortcut only.

You can however do it using just the mouse, which also requires just one hand, by dragging the window to the edge of the screen. You can set more options for this using the Warp or Secrets preference panes (both free).

  • works on OSX 10.8.4, but only if you've already created the other desktop – AWrightIV Aug 1 '13 at 0:08
4

Optimal Layout, an app I developed, lets you use keyboard commands to move, resize and change the Space of groups of windows.

  • Wow, Optimal Layout looks awesome! One small criticism that I noticed immediately upon watching the demo video, though: you misspelled "focused": future-perfect.co.uk/grammartips/… ... but I'm already in love with the app. Thanks for the tip. – iconoclast Jan 9 '13 at 21:42
  • Wasn't the feature of changing spaces removed at some point? You could also change the description on Spacey's page. "only compatible with Mac OS X 10.6 Snow Leopard" could also be interpreted that it's not compatible with 10.5 and earlier. – Lri Jan 12 '13 at 10:12
4

It seems like Amethyst (https://github.com/ianyh/Amethyst) could switch application to any workspace.

3

There is a tool called Zooom that will allow you to grab any part of a window to move it using a hotkey, and also similarly resize windows, again with a hotkey. This is very nice when moving from a linux wm to OS X, however I'm still wondering if just basic switching as in the question is available without additional software purchases.

2

The easiest way to do this is to enable the shortcuts in settings to switch to the desktop of your choice as seen below. Once you've enabled it you can move the window of your choice by holding your mouse button and executing your shortcut.

enter image description here

  • 1
    again... this is not a MOUSELESS solution – iconoclast Mar 13 at 19:53
1

If you are using window manager not desktopg environment, you can do that by modifying keymap, function TakeToWorkspace or SendToWorkspace.

For example in fluxbox.

$vi ~/.fluxbox/keys
Super_L 1 :TakeToWorkspace 1
Super_L 2 :TakeToWorkspace 2
Super_L 3 :TakeToWorkspace 3
Super_L 4 :TakeToWorkspace 4
Super_L 5 :TakeToWorkspace 5
Super_L 6 :TakeToWorkspace 6
Super_L 7 :TakeToWorkspace 7

Will allow you to press "mac button" + workspace number and focused window will be taken to the right workspace.

  • you're saying that you can run Fluxbox on macOS instead of the Finder? – iconoclast Mar 13 at 19:55
0

If you drag using the title bar and hold it against a border of the screen it should move after a few seconds (if there is a 'Space' for it to go to). Sure you have to use the mouse but there's no key commands involved.

  • I believe the OP finds key commands to be easier/faster than using the mouse. – jtheletter Sep 9 '15 at 17:24
0

A. Control-Up, then drag the window to the TOP of the screen. Those are desktops. A fair bit harder to realize than Linux desktops; but, it works. Apple is trying to show you what is already on each desktop. B. The F3 button also activates Mission Control. Note: Use Control-side arrows to switch desktops

-1

So, trying all the bogus methods out there accidentally led me to the solution everyone's looking for:

Click and Hold the window you want to move. Hold the Ctrl button. Drag the window to the edge of the screen until it moves the window to a new desktop. Drop the window and release the Ctrl button. Boom. Done.

Alternately, you can use Mission Control to drag and drop apps onto the Desktop you want, but that's not the solution you're looking for. Move along.

  • 1
    It's working for me without the control key...? Just click, drag, wait patiently. Not the easiest thing to do with a touchpad... – Merlyn Morgan-Graham Jul 19 '13 at 22:06
  • @MerlynMorgan-Graham I always keep drag lock enabled. It makes holding things like that much easier. – Blacklight Shining Oct 30 '13 at 13:48
  • 3
    Bogus: This answer requires mousing. – jtheletter Sep 9 '15 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy