Skip to content

Instantly share code, notes, and snippets.

@mbigras
Created February 17, 2021 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbigras/abb8653e56999731b1efe054d501541b to your computer and use it in GitHub Desktop.
Save mbigras/abb8653e56999731b1efe054d501541b to your computer and use it in GitHub Desktop.
# Disable macOS System Integrity Protection SIP
#
# csrutil status
# csrutil disable
# Configure personal account to run yabai as root
#
# create a new file for writing - visudo uses the vim editor by default.
# go read about this if you have no idea what is going on.
# sudo visudo -f /private/etc/sudoers.d/yabai
# input the line below into the file you are editing.
# replace <user> with your username (output of: whoami).
# change the path to the yabai binary if necessary (output of: which yabai)
# <user> ALL = (root) NOPASSWD: /usr/local/bin/yabai --load-sa
# Yabai configuration
sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
yabai -m config focus_follows_mouse autofocus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment