Install Yabai on Mac with Homebrew
The original tiling window manager for macOS, scriptable from the shell.
How to install Yabai
$ brew install koekeishiya/formulae/yabaiPaste it into Terminal. Don’t have Homebrew yet? Install it first:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Official site: github.com
Set up the rest of your Mac too
Add Yabai to a Dock of the apps most people install on a new Mac, then copy one command that installs all of them.
Add Yabai to my DockAlternatives to Yabai

Snap windows to halves and corners with shortcuts, free and open source.
brew install --cask rectangle
AeroSpace
HomebrewAn i3-style tiling window manager that needs no SIP changes, the current favourite for keyboard people.
brew install --cask nikitabobko/tap/aerospace