Editor, two terminals, a browser, the docs and an AI agent or two: a developer's day is a lot of windows that each need real width. Here's how to lay them out on a Mac, with the built-in tools, the popular tilers and a scrolling strip.
updated november 2026 · 7 min read
tl;dr
If you work in one IDE window with a terminal inside it, macOS's built-in tiling is enough. If you enjoy scripting your desktop, AeroSpace or yabai are free and excellent. If you juggle five or more windows (editor, terminals, browser, docs, agents) and want each at a width you can actually read, put them on a scrolling strip with ChainYourMac: new windows join the strip and the ones already open never shrink.
What a coding layout actually needs
Most developer setups come down to the same handful of windows:
The editor, wide enough for 100 to 120 columns of code without wrapping.
One or more terminals: a dev server, a shell, tests, logs.
A browser for the app you're building, plus another for docs and search.
Chat and agents: Slack, an AI assistant, or a coding agent running in its own terminal.
The problem is width. A 14" laptop fits about two of those at a comfortable size, and even a 27" display fits three or four. Every approach on the Mac is a different answer to what happens to window number five.
The options, compared
Approach
What happens with window five
Set up with
Cost
macOS tiling (Sequoia and later)
You tile it over something else; nothing keeps a layout.
Drag, menu, or Fn-Control shortcuts
Built in
Rectangle / snapping apps
You snap it into a half or third, covering another window.
Keyboard shortcuts, one window at a time
Free (Pro is paid)
AeroSpace
The workspace re-tiles and every window gets narrower, or you move it to another workspace.
A TOML config file
Free, open source
yabai
The BSP tree splits again and every window gets narrower.
A shell script config; some extras need SIP partly off
Free, open source
ChainYourMac
It joins the strip at its own width. Nothing else moves; you scroll to it.
A settings window (the settings are also a TOML file)
$19.99 once
None of these is wrong. Grid tilers are great when each workspace holds two or three windows, and plenty of developers live happily in AeroSpace with one app per workspace. The scrolling model is for the case where you want lots of windows in one place and each of them full-size. More detail: ChainYourMac vs AeroSpace and ChainYourMac vs yabai.
Try it right here — this is a working model of ChainYourMac, not a video.
SafariFileEditViewWindowHelpThu 9:41
Safari
chainyourmac.com
Terminal
~/project ❯ git status On branch main nothing to commit ~/project ❯ cargo test running 42 tests test result: ok ~/project ❯
Code
Notes
Chat
Music
Mail
Design
A working model of ChainYourMac, not a video. Drag a title bar to reorder, click a Dock icon to open an app, close a window with its red button. In the real app you hold ⌃⌥ with each key. The demo answers to both.
Notarized by Apple
Signed with Developer ID
No account, no telemetry in the app
Only needs the Accessibility permission
Automatic updates
A strip layout for a coding day
Here's a layout that works well on a laptop screen or a single external display. Each item is one column on the strip, left to right:
Editor at two-thirds width. Focus it and press ⌃⌥R to step through the preset widths until it's at 66%.
Two terminals stacked in one column at one-third. Put the dev server above and a shell below: focus the second terminal and press ⌃⌥] to stack it into the column on its left. ⌃⌥⇧= and ⌃⌥⇧- make one taller or shorter.
The browser running your app, at half width.
Docs and search in a second browser window.
Chat and agents at the far end, or as a tabbed column (⌃⌥⇧T) so several share one slot with a tab bar.
Editor and terminals fill the screen. A swipe or ⌃⌥L brings the browser in from the right, and ⌃⌥H takes you back. Nothing is hidden behind anything, and opening a sixth window never squeezes the editor.
The preset widths are 25, 33, 50, 66 and 75% of the screen, and you can edit them or add your own in Settings. ⌃⌥= and ⌃⌥- make a column wider or narrower, ⌃⌥F gives it the full width, and ⌃⌥C centres it. More: column widths.
Running several AI coding agents
Coding agents like Claude Code or Codex each run in their own terminal, and it's common to have two or three going at once on different branches. That's exactly the shape of a scrolling strip:
One column per agent. Each terminal stays at a readable width, and ⌃⌥1 to ⌃⌥8 jump straight to a column by its position on the strip (⌃⌥9 goes to the last one).
Or one tabbed column for all of them.⌃⌥⇧T turns a stack into tabs, each with its app's icon and title.
Pin the one you're watching.⌃⌥⇧P pins a window to the right edge at full height while the rest of the strip scrolls beside it. Press it again to unpin.
Keyboard-first, Vim keys included
Everything above works without the mouse. The defaults use Control-Option (⌃⌥) so they don't clash with Option, which macOS uses for moving by word and typing characters:
⌃⌥H⌃⌥J⌃⌥K⌃⌥L (or the arrows) move focus; add ⇧ to move the window.
⌃⌥S shows the strip minimap so you can see every column; click a tile to jump there.
⌃⌥N sends a window to the next display.
Every shortcut can be rebound, an action can have more than one binding, and Raycast, Keyboard Maestro and BetterTouchTool can trigger them too. The full list: keyboard shortcuts. Coming from niri? Every niri keybinding mapped to the Mac.
Laptop plus an external display
Each display gets its own strip with its own focus and scroll position. A common split is the editor strip on the big display and the browser and chat on the laptop. Send a window across with ⌃⌥N, or drag it. You can also switch ChainYourMac off for one display and arrange that one by hand. More: multiple displays and Spaces, and for very wide screens, ultrawide monitors.
When ChainYourMac isn't the right fit
You want to script the window manager itself. ChainYourMac's CLI and URL scheme run its actions; yabai and AeroSpace go further, with queries and hooks you can build your own layouts on.
You want a strict grid where everything is always visible. That's what BSP and i3-style tilers do; a strip deliberately lets windows run past the screen edge.
You're on an Intel Mac or macOS 12. ChainYourMac needs Apple silicon and macOS 13 or later.
Every window at a width you can code in.
Editor, terminals, browser and agents side by side on one strip, driven from the keyboard. Opening another terminal never squeezes the editor.
What's the best window manager for programmers on a Mac?
It depends on how many windows you keep open. With two or three, the built-in tiling in macOS 15 Sequoia and later, or Rectangle, is enough. If you like configuring your desktop in a text file, AeroSpace (i3-style) and yabai (BSP) are free and powerful. If you keep five or more windows open and want each one at a usable width, a scrolling window manager like ChainYourMac keeps them side by side on a strip and never shrinks the ones already open.
Can I move between windows with Vim keys?
Yes. ChainYourMac's defaults are ⌃⌥H / J / K / L to move focus (or ⌃⌥ with the arrow keys), add ⇧ to move the window instead, and every shortcut can be rebound in the app. More: all keyboard shortcuts.
Does it work with VS Code, Xcode, JetBrains IDEs and terminals?
ChainYourMac arranges any normal Mac window that macOS lets window managers move through its Accessibility API, which covers editors, IDEs, terminals and browsers. Some apps can't go below a certain width; ChainYourMac learns each window's limits and lays it out at a width it can take. Native macOS tabs (Terminal, Finder) take one column instead of one per tab.
How do I keep an AI coding agent's terminal visible while I work?
Pin it. ⌃⌥⇧P pins the focused window to the right edge of the screen at full height (⌃⌥P pins to the left), and the rest of the strip scrolls beside it. Press the same shortcut again to unpin. More: pinning and floating windows.
Is there a config file or CLI?
Both. Every setting has a control in the app, and the same settings are saved to a TOML file (~/Library/Application Support/ChainYourMac/config.toml) that you can edit by hand or keep in your dotfiles as a symlink; the engine reloads it on save. For automation there's a chainyourmac command-line tool, a chainyourmac:// URL scheme and Raycast script commands. More: automation.