Created
June 3, 2022 13:46
-
-
Save Beyarz/03bf6c6340a93c388d6159a79b9b4014 to your computer and use it in GitHub Desktop.
.config/yabai/yabairc
This file contains hidden or 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 | |
| # global settings | |
| yabai -m config mouse_follows_focus off | |
| yabai -m config focus_follows_mouse off | |
| yabai -m config window_origin_display default | |
| yabai -m config window_placement second_child | |
| yabai -m config window_topmost off | |
| yabai -m config window_shadow on | |
| 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 6 | |
| yabai -m config active_window_border_color 0xff775759 | |
| yabai -m config normal_window_border_color 0xff555555 | |
| 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 12 | |
| yabai -m config bottom_padding 12 | |
| yabai -m config left_padding 12 | |
| yabai -m config right_padding 12 | |
| yabai -m config window_gap 06 | |
| echo "yabai configuration loaded.." | |
| # the scripting-addition must be loaded manually i | |
| # 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 | |
| sudo yabai --load-sa | |
| yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" | |
| # general space settings | |
| yabai -m config layout bsp | |
| 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 11 | |
| # Exclude by default | |
| yabai -m rule --add app='.*' manage=off | |
| # Add applications to tile. | |
| yabai -m rule --add title='.*Google Chrome.*' app='^Google Chrome$' manage=on | |
| yabai -m rule --add app='^Code$' manage=on | |
| yabai -m rule --add app='^Safari$' manage=on | |
| yabai -m rule --add app='^XCode$' manage=on | |
| yabai -m rule --add app='^Slack$' manage=on | |
| yabai -m rule --add app='^Firefox$' manage=on | |
| yabai -m rule --add app='^Terminal$' manage=on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment