Back to blog
Guides8 min read

How to Save Window Positions on Mac: Auto-Restore Your Perfect Layout

Learn how to save and automatically restore window positions on Mac. Keep your perfect window layout across restarts and monitor changes.

Appish·Updated

macOS can't save where your windows are and put them back later. A few apps remember their own window, and Stage Manager and Spaces help a little, but saving a whole layout and restoring it (with a shortcut, on a schedule, or when you dock) takes an app such as Layoutish.

The Problem: macOS Doesn't Remember Where You Put Things

You've spent 10 minutes arranging your windows perfectly: Slack on the left third, code editor taking up the right two-thirds, Terminal at the bottom, and your browser positioned just right on your second monitor. Then you restart your Mac, and everything's back to square one.

macOS has no built-in way to save window positions. Unlike some Linux desktop environments that remember where every window was placed, Mac users are left manually repositioning their workspace every single day.

This gets even more frustrating if you:

  • Use multiple monitors and disconnect/reconnect regularly
  • Have different window layouts for different types of work
  • Work with the same set of apps daily but spend time arranging them each morning
  • Switch between desk and laptop setups

Why macOS Doesn't Save Window Positions

Apple's approach to window management has always been more "hands-off" compared to Windows or Linux. The assumption seems to be that users prefer apps to open where they think makes sense, rather than exactly where they were last time.

Some apps do remember their own position (like Terminal or TextEdit), but most don't. And there's no system-wide solution for saving entire workspace layouts.

Monitors make it worse. When a display disappears (you unplug a cable, close the lid, or undock), macOS moves every window that was on it onto the screens that remain, and it doesn't put them back when the display returns. That's how macOS is designed, not a bug, and Sequoia's window tiling didn't change it: tiling arranges windows in the moment, with no saved layouts. See why your windows get scrambled when you dock or wake your Mac.

Method 1: Use App-Specific Solutions

Some apps have built-in layout memory:

Apps that remember positions:

  • Terminal (remembers size and position)
  • TextEdit (remembers window state)
  • Some developer tools (VS Code, Xcode)

Apps that don't:

  • Most web browsers
  • Slack, Discord, messaging apps
  • Many third-party productivity apps

Two macOS features help a little, though neither saves positions:

  • Stage Manager (System Settings → Desktop & Dock) groups windows into sets you switch between. It's a task switcher more than a layout saver, and doesn't keep each window's place.
  • Spaces: right-click an app's Dock icon and choose Options → Assign To → This Desktop, and the app opens on that desktop every time.

This patchwork approach means you'll get partial layout restoration at best.

Method 2: AppleScript Automation

You can create AppleScript automations to position specific windows:

tell application "Safari"
    activate
    set bounds of front window to {100, 100, 800, 600}
end tell

But this requires:

  • Writing scripts for each app
  • Manually running the script each time
  • Updating scripts when you change your layout
  • Technical knowledge most users don't want to deal with

Method 3: Dedicated Window Layout Apps

This is where third-party solutions shine. Apps designed specifically for window management can save and restore entire workspace layouts.

Free options:

  • Rectangle: Great for window tiling but doesn't save layouts
  • Hammerspoon: Powerful but requires Lua scripting knowledge

Paid solutions:

  • Magnet ($8): Basic window snapping, no layout saving
  • Moom ($10): Can save window arrangements but interface is complex

Method 4: Complete Layout Management

For users who want comprehensive layout saving and restoration, Layoutish offers a more complete solution:

What it does differently:

  • Saves complete window layouts across all displays
  • Opens the layout's apps that aren't running before placing them, with Launch Apps on Restore turned on in Settings
  • Handles multi-monitor configurations intelligently
  • Can schedule layouts to apply at specific times
  • Detects when monitors are connected/disconnected

How it works:

  1. Arrange your windows exactly how you want them
  2. Save the layout with a name ("Morning Coding", "Client Calls", etc.)
  3. Restore the entire layout with a hotkey or from the menu
  4. Set up different layouts for different work modes

Setting Up Automatic Layout Restoration

The most powerful approach combines layout saving with automation:

Time-based layouts:

  • 9 AM: Open work layout (Slack, email, project management)
  • 2 PM: Switch to focused coding layout
  • 5 PM: Personal browsing setup

Monitor-based layouts:

  • Detect when external monitor connects
  • Automatically apply multi-monitor layout
  • Switch back to laptop-only layout when disconnecting

How to set this up in Layoutish

  1. Open Layoutish and click the Permission Needed banner. Turn Layoutish on in System Settings → Privacy & Security → Device Control and Data Access (Accessibility before macOS 27): macOS needs it before any app can move windows for you.
  2. Arrange your windows across all your monitors, then click Save Current Layout in Layoutish's menu and name it, such as "Docked, 3 monitors".
  3. Disconnect the monitors, arrange your windows for the laptop alone, and save that as a second layout, such as "Laptop only".
  4. Save a display profile for each setup. When you connect or disconnect a monitor, Layoutish's menu offers Save as Profile: pick the layout to apply under Auto-Apply Layout. (You can also do it from a layout's card: Display Profile, then Save Current Displays as Profile.) From then on, that layout applies by itself when those displays connect.
  5. For time-based layouts, click Schedule, turn on Auto-Switch Layouts, then Add Schedule: a name, a layout, the times and the days.

To apply a layout by hand, press ⌘⇧L for the Quick Switcher, type part of its name and press Return, or give the layout its own shortcut. Layoutish checks where each window landed and tries again if an app didn't move, which matters for apps that resist being placed, Electron apps especially. It's $9.99 once, with a 7-day free trial, and needs macOS 13.5 or later. For scheduling in more detail, see how to apply window layouts at set times and when monitors change.

Tips for Better Window Position Management

Create layouts for different contexts:

  • "Deep Work": Minimal distractions, focused apps only
  • "Communication": Slack, email, calendar prominent
  • "Research": Multiple browser windows, note-taking apps

Use consistent naming:

  • Include the context: "Writing - Blog Posts"
  • Note the monitor setup: "Coding - Dual Monitor"

Start simple:

  • Begin with 2-3 basic layouts
  • Add more as you identify patterns in your work

Beyond Just Saving Positions

True workspace management goes beyond just remembering where windows were:

  • Smart positioning: Handle apps that open in random locations
  • Multi-monitor awareness: Adapt layouts when displays change
  • App launching: Open missing apps automatically
  • Quick switching: Jump between different work contexts instantly

The goal isn't just to restore your windows, it's to eliminate the daily friction of setting up your workspace so you can focus on actual work.

Getting Started Today

While macOS doesn't save window positions natively, you don't have to manually arrange your workspace every day. Whether you go with AppleScript automation, a basic window manager, or a complete layout solution, the time saved adds up quickly.

Start by identifying your most common window arrangements, then choose the method that matches your technical comfort level and workflow complexity.

Common questions

Does macOS remember window positions when you reconnect a monitor?

No. When a monitor disconnects, macOS moves its windows to the screens that remain, and it doesn't move them back when the monitor returns. A tool with display profiles, such as Layoutish, puts them back.

Can you restore a window layout with a keyboard shortcut on Mac?

Not with macOS alone. In Layoutish, press ⌘⇧L to open the Quick Switcher and pick a layout, or give a layout its own shortcut on its card.

Do saved layouts survive a restart?

Yes: layouts are kept on your Mac. Layoutish doesn't apply a layout by itself when it opens, at login included, so after a restart apply one with a click, its shortcut or the Quick Switcher. With Launch Apps on Restore on, apps that aren't running are opened first.

Does Layoutish work alongside Sequoia's tiling, or Rectangle?

Yes. Use tiling or Rectangle for quick snapping during the day, and Layoutish to save and restore whole layouts. Rectangle doesn't save layouts or react to monitor changes; Layoutish does.

window-managementproductivitymacosworkspace