Sub topic 12
When to add a third-party window manager
This chapter helps you decide whether the built-in macOS tools are enough or whether to install a third-party window manager. It assumes you have read the earlier chapters on Spaces, Mission Control, built-in tiling, keyboard shortcuts, multiple displays, and Stage Manager. You should also be comfortable with System Settings and with running commands in Terminal.
What "window manager" means on macOS
A window manager is a program that decides where windows sit, how big they are, and which one has focus. macOS has one built in. It combines the Dock, Mission Control, Spaces, Split View, the Window menu's tiling commands, and Stage Manager.
Third-party tools do not replace the macOS window server. They run as ordinary apps and use the Accessibility API, the same interface assistive software uses, to read and move other apps' windows. Because of this, they can only do what the Accessibility API allows. That explains both what they can add and where they are limited.
What the built-in tools do not give you
The built-in tools are enough for many people. The gaps below are the usual reasons people look elsewhere.
- Limited layouts. Built-in tiling covers halves, quarters, and fills. It has no thirds, no sixths, no custom grid, and no layout memory.
- Few keyboard controls. Some tiling actions have default shortcuts. Others are menu items you must assign yourself under Keyboard shortcuts in System Settings.
- Slow Space switching. Switching Spaces plays an animation. Reduce Motion shortens it, but you cannot remove it.
- Split View is rigid. Split View handles two apps in full screen, with a few size choices. It is not a general tiling system.
- No automatic layout. When you open a window, macOS does not place it in a layout for you. You arrange every window by hand.
- Poor scripting. You can open Mission Control from a script, but you cannot ask macOS to move a window to a given Space with a supported command.
If none of these bother you in daily work, stop here. Extra software means extra permissions, updates, and failure modes.
Categories of third-party tools
Third-party tools fall into three groups. They differ in how much they change your workflow.
| Category | What it does | Examples | Cost of adoption |
|---|---|---|---|
| Snap and shortcut tools | Add more positions and shortcuts for windows you place yourself | Rectangle, Magnet, Moom | Low. The workflow stays the same. |
| Automatic tiling managers | Arrange windows in a layout without manual placement | Amethyst, yabai, AeroSpace | High. You adopt a new way of working. |
| Scripting and automation layers | Let you write your own window rules and shortcuts | Hammerspoon, BetterTouchTool | Medium to high. You write and maintain the rules. |
Snap and shortcut tools
These tools do what built-in tiling does, with more options. Rectangle is open source and free. Magnet is sold on the Mac App Store. Moom adds saved layouts and a pop-up grid. You still place windows yourself, and your Spaces and Mission Control habits keep working.
This category is the safest first step. A tool like Rectangle gives you thirds, sixths, and "move to next display" shortcuts, and it needs only one permission.
Automatic tiling managers
A tiling manager treats the screen as an area to divide. When a window opens, the manager resizes the others to make room. You move focus and windows with the keyboard, and the mouse becomes optional.
The three examples handle Spaces differently.
- Amethyst works with macOS Spaces. It lays out the windows on the current Space, in the style of the xmonad window manager.
- yabai also builds on macOS Spaces. Some of its Space features, such as moving a window to another Space, rely on a scripting addition that requires partly disabling System Integrity Protection (SIP). Many setups skip those features to avoid that.
- AeroSpace does not use macOS Spaces for its workspaces. It keeps its own virtual workspaces and hides windows from the other ones. It needs no SIP changes.
The last difference matters for the rest of this book. If your tiling manager keeps its own workspaces, the Spaces gestures and the Control-number shortcuts no longer reflect your workspaces. You then use one system or the other.
Scripting and automation layers
Hammerspoon exposes macOS to Lua scripts, so you can write window rules such as "put the browser on the left two thirds when the external display connects." BetterTouchTool binds gestures, shortcuts, and snapping to actions. These tools suit people who already know what they want and are prepared to write it.
Permissions and installation
Every tool in this chapter needs the Accessibility permission. Without it, the tool cannot see or move windows. macOS asks for it the first time you launch the tool. You grant it in System Settings under Privacy & Security, then Accessibility. Some tools also ask for Screen Recording, for example to read window titles in certain apps.
Homebrew is a common way to install them:
# Snap tool: free, open source
brew install --cask rectangle
# Automatic tiling manager with its own workspaces
brew install --cask nikitabobko/tap/aerospaceAfter installation, open the app and grant Accessibility access. If a shortcut does nothing, check this permission first. A tool that was updated or reinstalled sometimes needs its Accessibility entry removed and added again.
How the tools interact with the built-in features
Running two window managers at once causes conflicts, because both try to move the same windows. The conflicts below come up most often.
- Shortcut collisions. A tool may bind Control-Option-arrow keys, and so may a macOS Keyboard Shortcuts entry. The one that registers first wins, which looks like a shortcut that works some days and not others. Remove one of the two bindings.
- Built-in tiling. If you use Rectangle or Magnet, you can leave built-in drag-to-edge tiling on. Many people turn it off under Desktop & Dock, in the Windows section, so that a window dragged to an edge is not handled twice.
- Full-screen windows. A full-screen app lives in its own Space. Tiling tools generally do not manage it, so tiled layouts apply only to ordinary windows.
- Space reordering. Automatic tools that rely on Space numbers break when macOS reorders Spaces. Turn off "Automatically rearrange Spaces based on most recent use" in Mission Control settings, or use the command from the settings chapter:
defaults write com.apple.dock mru-spaces -bool false
killall Dock- Multiple displays. Check whether "Displays have separate Spaces" in the Mission Control settings matches what your tool expects. Tools document their own requirement for this setting.
- Stage Manager. Stage Manager and an automatic tiler fight over window placement. Turn Stage Manager off if you adopt a tiling manager.
Failure modes
Third-party tools fail in ways the built-in tools do not.
- Updates break them. A macOS release can change the Accessibility behavior or, for tools with deep hooks such as yabai's scripting addition, stop them working until the author ships a fix. Read the project's notes before you upgrade macOS.
- Some windows refuse to resize. Dialogs, fixed-size utilities, and some apps ignore resize requests. A tiling manager then leaves gaps or overlaps. Most tools let you list apps to leave alone.
- Apps with custom window frames may report unusual sizes, so a snap lands a few pixels off.
- Lost windows. If a tool hides windows to simulate workspaces and then crashes, those windows can stay hidden until the tool is restarted. Know how to quit it and show all windows again.
- Extra attack surface. A tool with Accessibility access can read and control other apps. Install only tools you trust, from their official source.
Decision criteria
Ask these questions in order. Stop at the first "yes."
Some practical rules follow from the diagram.
- Start with the lightest tool that closes your gap. Moving from a snap tool to a tiling manager later is easy. Going back is harder, because your habits change.
- Try a tiling manager for a week on a normal workday before you commit. Keep your built-in Spaces setup unchanged until you are sure.
- Prefer a tool that avoids security changes. A feature that requires turning off SIP should have a strong reason behind it.
- Check that the project is maintained. Look at its recent releases and whether it supports your macOS version.
A minimal tiling-manager configuration
To show what adopting a tiling manager looks like, here is a small AeroSpace configuration. It is stored at ~/.aerospace.toml. It moves focus with Option-H/J/K/L, switches workspaces with Option plus a number, and sends a window to a workspace with Option-Shift plus a number.
[mode.main.binding]
alt-h = 'focus left'
alt-j = 'focus down'
alt-k = 'focus up'
alt-l = 'focus right'
alt-1 = 'workspace 1'
alt-2 = 'workspace 2'
alt-3 = 'workspace 3'
alt-shift-1 = 'move-node-to-workspace 1'
alt-shift-2 = 'move-node-to-workspace 2'
alt-shift-3 = 'move-node-to-workspace 3'Compare this with Spaces. In Spaces, you open Mission Control, drag a window to a desktop, and switch with Control-number shortcuts you must first enable. Here, the keys are defined in one text file you can copy to another Mac.
Removing a third-party tool
Remove a tool completely if you stop using it, since leftovers can keep shortcuts or permissions alive.
- Quit the app. If it has a login item, remove it under General, then Login Items & Extensions.
- Delete the app, or run
brew uninstall --cask rectangleif Homebrew installed it. - Remove its entry from Privacy & Security, then Accessibility.
- Turn the built-in features you disabled back on, such as drag-to-edge tiling.
- If you changed Dock settings for the tool, restore the default:
defaults delete com.apple.dock mru-spaces
killall DockExercise
You use a MacBook with one external display. You want windows split into thirds and a shortcut to send the front window to the other display. You are happy with Mission Control and Spaces as they are. Which kind of tool fits, and why would a tiling manager like AeroSpace be a worse choice?
Show answer
A snap and shortcut tool such as Rectangle fits. It adds thirds and a move-to-next-display shortcut while leaving your Spaces and Mission Control workflow unchanged. AeroSpace would replace macOS Spaces with its own workspaces and an automatic layout, so you would give up the habits you want to keep.
Exercise
After you install a tiling tool and grant it Accessibility access, a keyboard shortcut works only some of the time. Name one likely cause and the fix.
Show answer
Two bindings are competing for the same keys, for example the tool and a macOS Keyboard Shortcuts entry or the built-in tiling shortcuts. Remove or change one of the two bindings so only one program responds.