|
#!/usr/bin/env zsh
|
|
|
|
sudo yabai --load-sa
|
|
## global settings
|
|
# focus window that your mouse hovers on (disabled due to right click bugs)
|
|
#yabai -m config focus_follows_mouse off
|
|
# move mouse to focused window
|
|
yabai -m config mouse_follows_focus off
|
|
yabai -m config window_placement first_child
|
|
# floating windows always stay on top
|
|
yabai -m config window_topmost on # previous on
|
|
# enable borders
|
|
yabai -m config window_border on
|
|
# no clue what this is
|
|
#yabai -m config insert_feedback_color 0xffd75f5f
|
|
yabai -m config split_ratio 0.50
|
|
# don't automatically rebalance windows
|
|
yabai -m config auto_balance off
|
|
# swap windows if moved with mouse
|
|
yabai -m config mouse_action1 move
|
|
# resize windows if resized with mouse
|
|
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 40
|
|
yabai -m config bottom_padding 10
|
|
yabai -m config left_padding 10
|
|
yabai -m config right_padding 10
|
|
yabai -m config window_gap 06
|
|
|
|
#-=-=-=-=-=-=-=-=-=-=-=
|
|
# SIP Required
|
|
# prevent border from being under the active window
|
|
#yabai -m config active_window_border_topmost on
|
|
yabai -m config window_shadow on
|
|
yabai -m config window_opacity on
|
|
#yabai -m config window_opacity_duration 0.0
|
|
yabai -m config active_window_opacity 0.95
|
|
yabai -m config normal_window_opacity 0.95
|
|
yabai -m config window_border_width 8
|
|
yabai -m config active_window_border_color 0xffad82cb
|
|
yabai -m config normal_window_border_color 0xffaaaaaa
|
|
|
|
#-=-=-=-=-=-=-=-=-
|
|
# Focus space focused before the current one (so you can alternate)
|
|
|
|
##=-=-=-=-=-=-=-=-=-
|
|
## Rules:
|
|
#-=-=-=-=-
|
|
#yabai -m rule --add app="Finder" title="Trash" manage=off
|
|
yabai -m rule --add title="Preferences" manage=off
|
|
yabai -m rule --add title="Preview" manage=off
|
|
#yabai -m rule --add title="Safari" manage=on border=on
|
|
#yabai -m rule --add label=safari app="^Safari$" space=2 manage=on
|
|
#yabai -m rule --add app="iTunes" title="MiniPlayer" manage=off
|
|
#yabai -m rule --add app="Music" title="MiniPlayer" manage=off
|
|
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
|
|
#yabai -m rule --add label="Safari" app="^Safari$" title="^(General|(Tab|Password|Website|Extension)s|AutoFill|Se(arch|curity)|Privacy|Advance)$" manage=on border=off
|
|
#-=-=-=-=--
|
|
#yabai -m rule --add app="^ImageJ$" title="^.*\[.*\]$" manage=off border=off
|
|
#yabai -m rule --add app=Fiji title="^.*\[.*\]$" manage=off border=off
|
|
#yabai -m rule --add app="^Java$" title="^.*\[.*\]$" manage=off border=off
|
|
#yabai -m rule --add app="^Eclipse$" title="^.*\[.*\]$" manage=off border=off
|
|
yabai -m rule --add app="^Inkscape$" title="^.*\[.*\]$" manage=off border=off
|
|
#yabai -m rule --add app="^LibrePCB$" title="^.*\[.*\]$" manage=off border=off
|
|
#yabai -m rule --add app="^LaTeXiT$" manage=off
|
|
#yabai -m rule --add app="^Music$" title="^.*\[.*\]$" manage=on border=off
|
|
#yabai -m rule --add label="Emacs" app="^Emacs$" title="^.*\[.*\]$" manage=on border=off
|
|
#yabai -m rule --add app="^Emacs" manage=off
|
|
yabai -m rule --add label=emacs app=Emacs manage=on space=4
|
|
yabai -m rule --add label=safari app=Safari manage=on space=1
|
|
yabai -m rule --add label=fiji app=ImageJ manage=off space=7
|
|
yabai -m rule --add label=calendar app=Calendar manage=off border=off
|
|
yabai -m rule --add label=calendar app=Safari manage=on border=off space=1
|
|
#yabai -m rule --add app="^Python$" title="^.*\[.*\]$" manage=off border=off
|
|
|
|
# float system preferences
|
|
#yabai -m rule --add app="^System Information$" manage=off
|
|
#yabai -m rule --add app="^System Preferences$" manage=off
|
|
#yabai -m rule --add title='Preferences$' manage=off
|
|
#yabai -m rule --add title='^Archive Utility$' manage=off
|
|
|
|
# float settings windows
|
|
yabai -m rule --add title='Settings$' manage=off
|
|
#-=-=-=-=-=-=-
|
|
echo "Yabai's configuration loaded ... O.K."
|