You plug your MacBook back into your desk monitor, and the windows you left there are still piled onto the laptop screen. If you move between the same two setups every day, save a layout for each. Then you can put your windows back from the menu bar or with a keyboard shortcut.
Save your desk layout
- Connect your external monitor and arrange your windows. For example, put your editor and browser on the monitor and keep Messages on the MacBook.
- Click the LayoutLock icon in the menu bar and choose Save Layout…, then name it Desk.
- Open the LayoutLock dashboard and check the preview. If you want to restore this layout from the keyboard, select Desk and choose Set Hotkey.
LayoutLock requires macOS 14 or later and Accessibility access to read and move windows. Your layouts are stored on your Mac.
Restore it when you plug back in
Reconnect your monitor and wait for it to appear in System Settings → Displays. Then open the LayoutLock menu and select Desk under Restore Layout, or press the shortcut you assigned.
Keep a second layout for the laptop
When you’re working away from your desk, arrange the windows you need on the MacBook and save that layout as Laptop. Give it its own shortcut if you switch often. You can do both with the free version.
If you use Pro, turn on Suggest Layouts When Displays Change in LayoutLock’s General settings. LayoutLock can offer a matching layout when you connect or disconnect a monitor. You choose when to restore it.
If a window lands on the wrong screen
Check System Settings → Displays first. If macOS hasn’t detected the monitor, LayoutLock may put matching windows on an available display. Once the monitor appears, try Desk again. If one window is still out of place, check that it’s in the saved layout and that LayoutLock has Accessibility access. Some apps also enforce a minimum window size. Apple’s external display troubleshooting guide can help if macOS still hasn’t detected the monitor.
Download LayoutLock free and try it with your desk and laptop setups.