2.1 KiB
2.1 KiB
Yabai Configuration
Load script additions automatically.
yabai -m signal --add event=dock_did_restart action="sudo /opt/homebrew/bin/yabai --load-sa"
sudo /opt/homebrew/bin/yabai --load-sa
Tile the windows.
yabai -m config layout bsp
Automatically balance window sizes.
yabai -m config auto_balance on
Use 10 pixel gaps.
yabai -m config top_padding 10
yabai -m config bottom_padding 10
yabai -m config left_padding 10
yabai -m config right_padding 10
yabai -m config window_gap 10
Remove window shadows unless the window is floating.
yabai -m config window_shadow float
Move mouse to focused window anad focus on the window that the mouse is on.
yabai -m config focus_follows_mouse autoraise
yabai -m config mouse_follows_focus on
Control windows if cmd
is held.
yabai -m config mouse_modifier cmd
Move windows with left click.
yabai -m config mouse_action1 move
Resize windows with right click.
yabai -m config mouse_action2 resize
Update Positions when the window is dropped.
yabai -m mouse_drop_action swap
Don't manage some apps.
yabai -m rule --add app="^System Settings$" manage=off
yabai -m rule --add app="^Calculator$" manage=off
Make windows management aware of SketchyBar.
yabai -m config external_bar all:$(sketchybar --query bar | jq .height):0