talira

Tiling window management for the Mac

open sourceMITself-hostablefree

yabai is an MIT-licensed tiling window manager for macOS that works as an extension to the built-in window manager. It lays windows out automatically with binary space partitioning and lets you control windows, spaces and displays from a command line interface, with keyboard shortcuts bound through skhd or similar tools. It also offers focus-follows-mouse, disabling the animation when switching spaces and more than 16 spaces; some features need System Integrity Protection partially disabled so it can inject a scripting addition into Dock.app.

Problems it solves

  • split my Mac screen automatically every time a new window opens, like bspwm on Linux
  • control windows, spaces and displays on macOS from shell scripts
  • move a window to another macOS Space with a keyboard command
  • turn off the animation when switching desktops on my Mac
  • I need more than 16 desktops on macOS
  • focus follows mouse on macOS so I don't have to click a window first
  • tile windows on my Mac but keep using the native Spaces I already have
  • make certain apps float instead of tiling with rules in a config file
  • a window manager I can wire up to my own hotkey daemon and status bar

Features

  • automatic binary space partitioning layouts
  • command line control of windows, spaces and displays
  • works with native macOS Spaces
  • focus follows mouse
  • disable the space-switching animation
  • create more than 16 spaces
  • window rules and signals for scripting
  • optional window animations (needs Screen Recording permission)
  • Intel and Apple Silicon support

Limitations

  • No built-in keyboard shortcuts: bind its commands with skhd or another hotkey tool1
  • Some features need System Integrity Protection partially disabled: they inject a scripting addition into Dock.app1
  • Doesn't handle native macOS tabs: Terminal and Finder tabs misbehave, so those windows should float1

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what yabai does.

  1. AeroSpace An i3-like tiling window manager for macOS
  2. Rectangle Move and resize windows on macOS with keyboard shortcuts and snap areas
  3. OmniWM Free, open-source tiling window manager for Apple Silicon Macs, with Niri-style scrolling and Hyprland-style Dwindle BSP
  4. Hammerspoon Staggeringly powerful macOS desktop automation with Lua
  5. Loop Window management made elegant
  6. Lasso Move and resize windows with your mouse or keyboard

Compare yabai with the top 3