Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move all windows to a single monitor (with two attached) in Mac OS X? [closed]

Tags:

Whenever I use my MacBook away from my desk and later plug it into an external display (as primary), I get into the state of having windows deposited in both the notebook monitor and the external one.

To move all windows to a single screen, my current solution is to "Turn on mirroring" in the display preferences and then turn it off again. This is rather tedious, though. Does anyone know of a better way?


I'm afraid the script posted by @erlando does absolutely nothing for me, running Mac OS X 10.5.4. (I.e., with windows on both screens, running the script moves not a single one of them, and it does not return any errors.) I guess I'll just have to stick with using the "mirror/unmirror" method mentioned above.


@Denton: I'm afraid those links provide scripts for getting windows which are orphaned from any screen back onto the display. I ‘just’ want to move all windows from a secondary display onto the primary display.

like image 571
Will Robertson Avatar asked Sep 02 '08 09:09

Will Robertson


People also ask

How do you move multiple windows on a Mac?

Just press F9 after pressing F8). When you press F8, you get an overview of every space, showing all open windows in all spaces. From here, you know you can move a window from one space to another by simply dragging it there.

How do I drag a window that is off screen Mac?

Right-click on the thumbnail and select Move on the menu. Move the mouse cursor—now switched to a four-arrow "move" symbol – to the middle of your screen. Use the left arrow or right arrow key to move the missing window into the viewable area.


1 Answers

Cmd+F1 appears to be a Mirror Displays shortcut in Snow Leopard. Don't know about Lion, etc, though.

Just tap it twice and see what happens (-:

For the people who prefer to set up their function keys to act in the old-fashioned way (not as brightness/sound controls etc.), it will be Cmd+Fn+F1

like image 110
failrat Avatar answered Oct 03 '22 05:10

failrat