How to automate window layouts on a Mac
Open your morning apps in the right places with one command. Shortcuts, Terminal and links that set up a whole window layout on a Mac automatically.
If you arrange the same windows the same way every morning, that is a job for a script.
With what macOS has
The Shortcuts app can open apps and, with AppleScript, set window positions for apps that support it. It is fragile: positions are fixed numbers that break when you change displays.
Layouts as links
ClutterFreeMac saves layouts by name, as an order of apps and widths rather than pixel positions, so they fit whatever display you are on. Each layout and command has a link:
open -g "clutterfreemac://layout/Writing"
open -g "clutterfreemac://run/cycleWidth"Use them from Terminal, from a Shortcuts action that opens a URL, from Raycast or Alfred, or from a calendar alert. Settings, Automation copies a small Terminal helper so cfm layout Writing works too.
Missing apps open on the way, so one link can set up your whole morning.
Questions
Can a Mac open apps in specific positions automatically?
With AppleScript, partly. A window manager with saved layouts does it more reliably and adapts to the display you are on.
Read next
- Guide
An Obsidian window layout on a Mac: panes, pop outs and the rest
Split panes, open notes in new windows, and place Obsidian beside your browser or PDFs. How to arrange it for writing and research on a Mac.
Read › - Guide
How to make apps open in full screen automatically on a Mac
macOS has no switch for it, but one setting makes apps reopen the way you left them, full screen included. Here is how it works, and where it stops.
Read › - Guide
How to stop apps opening at startup on a Mac: the three places to look
Apps that open when your Mac starts come from three places: Login Items, windows macOS reopens, and the app's own setting. How to turn off each one.
Read ›