Last active
June 9, 2021 14:09
-
-
Save hengstchon/c94ec3e0ed88054b080bedc545f64dec to your computer and use it in GitHub Desktop.
~/.config/yabai/yabairc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# the scripting-addition must be loaded manually if | |
# you are running yabai on macOS Big Sur. Uncomment | |
# the following line to have the injection performed | |
# when the config is executed during startup. | |
# | |
# for this to work you must configure sudo such that | |
# it will be able to run the command without password | |
# | |
# see this wiki page for information: | |
# - https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release) | |
# | |
# sudo yabai --load-sa | |
# yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" | |
# global settings | |
yabai -m config mouse_follows_focus on | |
yabai -m config focus_follows_mouse off | |
yabai -m config window_placement second_child | |
yabai -m config window_topmost off | |
yabai -m config window_shadow float | |
yabai -m config window_opacity off | |
yabai -m config window_opacity_duration 0.0 | |
yabai -m config active_window_opacity 1.0 | |
yabai -m config normal_window_opacity 0.90 | |
yabai -m config window_border off | |
yabai -m config window_border_width 2 | |
yabai -m config active_window_border_color 0xff66BB6A | |
yabai -m config normal_window_border_color 0xff505050 | |
yabai -m config insert_feedback_color 0xffd75f5f | |
yabai -m config split_ratio 0.50 | |
yabai -m config auto_balance off | |
yabai -m config mouse_modifier fn | |
yabai -m config mouse_action1 move | |
yabai -m config mouse_action2 resize | |
yabai -m config mouse_drop_action swap | |
# general space settings | |
yabai -m config layout bsp | |
yabai -m config top_padding 05 | |
yabai -m config bottom_padding 05 | |
yabai -m config left_padding 05 | |
yabai -m config right_padding 05 | |
yabai -m config window_gap 05 | |
# let spacebar handle bar | |
yabai -m config external_bar all:26:0 | |
# float system preferences | |
floatApp='^(Finder|Calendar|System Preferences|Mail|WeChat|QQ|Telegram)$' | |
yabai -m rule --add app="${floatApp}" manage=off | |
floatTitle='^(About This Mac)$' | |
yabai -m rule --add title="${floatTitle}" manage=off | |
# show digital colour meter topmost and on all spaces | |
yabai -m rule --add app="^Digital Colour Meter$" sticky=on | |
yabai -m rule --add label=iTerm2 app="^iTerm2$" space=1 | |
yabai -m rule --add label=brave app="^Brave Browser$" space=2 | |
echo "yabai configuration loaded.." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment