⸻
Step 1: Disable SIP (System Integrity Protection) 1. Shut down your Mac. 2. Turn it back on while holding the power button until you see Startup Options on the screen. 3. Choose your main disk, click Continue, and then open Terminal from the menu bar. 4. In Terminal, type:
csrutil disable5. Enter your password when prompted.
6. Reboot your Mac.
7. Once you’re back in macOS, verify SIP is disabled:
csrutil statusYou should see:
System Integrity Protection status: disabled.
⸻
Step 2: Install Yabai & skhd 1. Install Homebrew (if missing): https://brew.sh 2. Install Yabai and skhd:
brew install koekeishiya/formulae/yabai
sudo yabai --load-sa
brew install jq
brew install koekeishiya/formulae/skhd⸻
Step 3: Configure Yabai & skhd 1. Create config folders and files:
mkdir -p $HOME/.config/yabai
mkdir -p $HOME/.config/skhd
touch $HOME/.config/yabai/yabairc
touch $HOME/.config/skhd/skhdrc
chmod +x $HOME/.config/yabai/yabairc
chmod +x $HOME/.config/skhd/skhdrc2. Edit the skhdrc file:
nano $HOME/.config/skhd/skhdrcAdd:
alt - right : yabai -m space --focus next
alt - left : yabai -m space --focus prev3. Save the file and reboot your Mac.
⸻
Step 4: Finalizing Setup
After reboot:
sudo yabai --load-sa
yabai --start-service
skhd --start-serviceWhen making changes to either:
- .config/skhd/skhdrc
- .config/yabai/yabairc
you update the scripts then run either:
yabai --restart-serviceskhd --restart-service
BREW doesn't do the restarts, this was sunsetted
Helpful links: https://www.josean.com/posts/yabai-setup https://evantravers.com/articles/2024/02/15/yabai-tiling-window-management-for-osx/ https://medium.com/unixification/yabai-the-macos-tiling-window-manager-c5bda9d60bfc https://github.com/tcmmichaelb139/.dotfiles/blob/main/yabai/.config/skhd/skhdrc https://apple.stackexchange.com/questions/416554/how-to-resize-side-by-side-windows-simultaneously-on-mac