How do I quickly position two windows side by side?

27

13

Sometimes you need to see two windows side by side, e.g. when following instructions or when working on a translation. How do I quickly arrange two windows like that?

edit: interested in answers for all platforms and window managers

wcoenen

Posted 2009-07-29T12:14:32.247

Reputation: 2 060

3On what platform? – innaM – 2009-07-29T12:19:45.640

I'm assuming that you only have one monitor? :) – Nippysaurus – 2009-07-29T13:10:57.773

Answers

31

There are good solutions for both Mac and Windows that I know of:

Windows 7

This feature is built in, and it's called Aero Snap. You can use the following keyboard shortcuts to get the behavior you want:

  • Win + ← moves the current window to the left half of the screen.
  • Win + → moves the current window to the right half of the screen.
  • Win + ↑ maximes the current window.

Windows XP and Vista

GridMove allows you to setup regions to snap windows to via a shortcut key. I mapped Win + 1 to move a window to the left half of the screen and Win + 2 to use the right half.

AeroSnap makes Windows 7's native keyboard shortcuts available in Windows Vista and Windows XP.

Mac OS X

Cinch, SizeUp (both unlimited free trials) and TwoUp (discontinued – available here) from Irradiated Software all accomplish this task perfectly. SizeUp adds some extra features, including multiple monitor support.

Nick Haddad

Posted 2009-07-29T12:14:32.247

Reputation: 765

3

TwoUp has been discontinued and replaced by Cinch http://www.irradiatedsoftware.com/cinch/index.html which seems to work very well

– Craig Hyatt – 2012-08-05T17:04:52.780

Just downloaded cinch and sizeup, both are nice – Мати Тернер – 2013-10-25T03:28:01.607

19

Answer for Windows as explained on the old new thing:

In the taskbar, click the button for the first window you want to position, then hold the Ctrl key and right-click the button for the second window. Select Tile Vertically. Bingo, the two windows are positioned side by side.

As mentioned in a comment below, you can also hold Ctrl while you click an additional taskbar button and finally right-click a third one. In this way you can arrange 3 windows at the same time. More than 3 windows also works but results in a grid layout.

wcoenen

Posted 2009-07-29T12:14:32.247

Reputation: 2 060

2you can hold in Ctrl for all windows you want to arrange. So this will work for n windows – pavsaund – 2009-07-29T12:24:21.673

Also this is easier on Windows 7, where you can just drag the windows to either the left or the right side of the screen, where they dock. – Joey – 2009-07-29T12:25:09.347

Also, it does this per monitor, so that you can spread windows across screens, and tiling is done on a per-monitor basis – pavsaund – 2009-07-29T12:25:49.003

Note: this only works with two Windows I think else it will arrange all Windows like that, making a horrible mess... – Ivo Flipse – 2009-07-29T12:31:33.587

Works with up to 3 windows on XP. Any more and they are tiled in a grid. – pelms – 2009-07-29T12:37:13.910

On Windows XP, any maximised windows not selected appear to get restored when the selected windows are tiled. – MrWhite – 2012-06-09T22:17:40.690

7

Mac OSX

Two excellent, free tools:

  • Spectacle is ultra-simple and lets you setup shortcut keys to all the typical window placement actions (fill left half of screen, fill top half, full screen, center, etc).

  • BetterTouchTool is very full featured and can do these keyboard shortcuts as well, but also lets you click and drag windows to "snap" to different regions of the screen. (And it has tons of other features, since it's original purpose was custom touchpad gestures).

jpeskin

Posted 2009-07-29T12:14:32.247

Reputation: 171

5

For linux, get a tiling window manager (AwesomeWM, XMonad, dwm, ratpoison, musca..). If you don't like or are not familiar with automatic tiling, or you don't want to switch WMs, use some of the tiling scripts, like stiler.

user4126

Posted 2009-07-29T12:14:32.247

Reputation: 546

5

In the newest Ubuntu versions that come preinstalled with Unity desktop manager and Compiz, the function is preinstalled. You can align the chosen window by doing the following:

  • to fullscreen: Super+Ctrl+
  • to left half: Super+Ctrl+
  • to right half: Super+Ctrl+

("Super" key is the name for the Windows key on Linux.)

You should be able to do this on other Linux distros too, as long as they are able to run Compiz.

Senkaku

Posted 2009-07-29T12:14:32.247

Reputation: 494

3

In Ubuntu 14.04 LST it is possible to accomplish this task in additional way.

Ctrl+Alt+Num(keypad)

As a result it will place the window at:

  • 1 -up left
  • 2 -up center
  • 3 -up right,
  • 4 -middle left etc.
  • 0 -minimize

AndreyCh

Posted 2009-07-29T12:14:32.247

Reputation: 31

1

Try Divvy. Basically it allows you to easily (via a few shortcuts) resize your window to exact proportions.

Hengjie

Posted 2009-07-29T12:14:32.247

Reputation: 111