AutoWindow

Help

Install

  1. Download the latest release and open the zip.
  2. Drag AutoWindow to your Applications folder and open it.
  3. A window icon appears in the menu bar. AutoWindow has no Dock icon.
  4. Turn on Launch at Login in its menu to keep it running.

It needs macOS 14 Sonoma or later and runs on Apple silicon and Intel. You can also build it from source.

Accessibility permission

AutoWindow moves windows through the macOS Accessibility feature, so it needs your permission. On first launch macOS asks. If you missed it, choose Grant Accessibility Access… in the AutoWindow menu, or open System Settings → Privacy & Security → Accessibility and switch AutoWindow on.

The menu item disappears once access is granted. Nothing is saved or moved before that.

Set up desktops

Skip this if you use one desktop per monitor. For snapshots across several desktops (Spaces), do both steps.

1. Stop macOS from rearranging desktops

Open System Settings → Desktop & Dock → Mission Control and turn off “Automatically rearrange Spaces based on most recent use”. It is on by default. While it’s on, macOS reorders your desktops, so “desktop 3” in a snapshot can be a different desktop the next day. AutoWindow shows a warning in its menu while it’s on.

2. Check the desktop shortcuts

AutoWindow switches desktops with your own Mission Control shortcuts, under System Settings → Keyboard → Keyboard Shortcuts… → Mission Control:

  • Switch to Desktop 1, 2, 3… is off by default. Turn it on for the desktops you use; it’s the fastest.
  • Move left / right a space (⌃← and ⌃→) is on by default. AutoWindow falls back to it, one desktop per step.

With both turned off, windows still get the right monitor, position and size, and the result message says which shortcut is missing.

Snapshots

A snapshot is a named save of every open window: which monitor, which desktop, where and how big.

  • Save: choose Save Snapshot… (⌘S) in the menu and name it.
  • Restore: choose the snapshot in the menu, then Restore.
  • Rename or delete: in the same submenu. Deleting asks first.

During a restore the screen flips through desktops for a few seconds, because AutoWindow carries each window across by its title bar. Leave the mouse alone until it finishes. Hold Esc to stop moving windows between desktops; the window being carried is released. Positions and sizes have already been applied by then. The pointer returns to where it was.

A snapshot belongs to the set of monitors it was saved with. Snapshots for other monitor setups are listed under “For Other Monitors” and can be restored once those monitors are connected.

AutoWindow also saves a snapshot called “At startup” about 20 seconds after it starts, replacing the previous one.

What a restore doesn’t do

  • It doesn’t open apps or documents. Windows that aren’t open are counted as “not open”.
  • It doesn’t create desktops. If a monitor now has fewer desktops, those windows go to its last one.
  • It leaves full-screen windows alone.

The automatic layout

This is separate from snapshots. AutoWindow keeps one automatic layout for each set of connected monitors: its own memory of where your windows sit. You don’t save it or name it. It never moves a window to another desktop.

It’s the Automatic group in the menu:

  • The first line says what is remembered, for example “14 windows remembered · updated 15:02”.
  • Put Windows Back Now (⌘R) moves open windows to their remembered positions.
  • Remember Positions as I Work updates the memory every 30 seconds. With it off, Remember Positions Now appears, to update it once.
  • Put Windows Back When Monitors Change does it by itself when you dock, undock or wake the Mac.
  • Place an App’s Windows When It Opens puts an app’s windows in their remembered place when it starts.

Automatic or snapshot?

Use the automatic layout to stop re-arranging after docking. Use snapshots when you want to switch between setups on purpose, or when the desktop a window is on matters. Snapshots are in the Snapshots group at the top of the menu.

The editor

Choose Show Layouts & Snapshots… (⌘L) to see each layout as a map of your displays.

  • Drag a window to move it, also onto another monitor.
  • Click a window, then drag one of its eight handles to resize.
  • Edges snap to monitors and other windows. Hold ⌘ while dragging to turn snapping off.
  • Arrow keys move the selected window 10 points; with ⇧, 1 point.
  • The panel on the right takes exact numbers and has buttons for halves, fill and center. For snapshots it also sets the desktop.

Edits are a draft until you press Apply (monitors connected: saves and moves the windows) or Save. ⌘Z undoes a step.

Turn on Allow Control by autowindow:// Links in the menu first. It’s off by default, because any app or web page can open a link.

autowindow://snapshot/save?name=Desk
autowindow://snapshot/restore?name=Desk

Use them in the Shortcuts app (“Open URLs”), in Raycast or Alfred, or from Terminal with open. Without a name, restore picks the newest snapshot for the connected monitors. A link always saves a new snapshot; it never replaces or deletes one.

Fix a problem

Nothing moves

Check that AutoWindow is switched on under Privacy & Security → Accessibility. If it’s on and still nothing moves, remove it from that list with the minus button, add it again, and reopen the app.

Windows land on the wrong desktop

Turn off “Automatically rearrange Spaces based on most recent use” (see above), arrange your windows, and save the snapshot again. Snapshots saved while it was on may have shifted.

Some windows stay on their old desktop

The result message in the menu says why. Either a desktop shortcut is turned off, or the window has no normal title bar to hold. Those windows still get the right position and size.

A window wasn’t restored

It has to be open. After restarting an app, AutoWindow matches windows by title, then by order, so two untitled windows of one app can swap places.

The restore went wrong halfway

Moving the mouse during a restore can drop a window in the wrong spot. Run the restore again and keep your hands off until it finishes.

Still stuck?

For a question or an idea, ask in Discussions.

For a bug, open an issue on GitHub. Include your macOS version, how many monitors and desktops you have, and the last lines of ~/Library/Application Support/AutoWindow/events.log. Check the log first: it can contain window titles.

Your data

AutoWindow has no network code. It stores window positions, app names and window titles in ~/Library/Application Support/AutoWindow/ on your Mac and nowhere else. Show Data Folder in the menu opens that folder.

Uninstall

  1. Turn off Launch at Login in the menu, then choose Quit AutoWindow.
  2. Move AutoWindow from Applications to the Trash.
  3. Delete the folder ~/Library/Application Support/AutoWindow.
  4. Remove AutoWindow under System Settings → Privacy & Security → Accessibility.