#!/usr/bin/env sh # # 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)#configure-scripting-addition # # yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" # sudo yabai --load-sa # # global settings yabai -m config \ mouse_follows_focus off \ focus_follows_mouse off \ window_origin_display default \ window_placement second_child \ window_zoom_persist on \ window_shadow on \ window_animation_duration 0.0 \ window_animation_frame_rate 120 \ window_opacity_duration 0.0 \ active_window_opacity 1.0 \ normal_window_opacity 0.90 \ window_opacity off \ insert_feedback_color 0xffd75f5f \ split_ratio 0.50 \ split_type auto \ auto_balance on \ top_padding 2 \ bottom_padding 2 \ left_padding 2 \ right_padding 2 \ window_gap 2 \ layout bsp \ mouse_modifier ctrl \ mouse_action1 move \ mouse_action2 resize \ # external_bar all:40:0 \ mouse_drop_action swap # float system settings yabai -m rule --add app="^System Settings$" manage=off yabai -m rule --add app="Todoist" title="Todoist" is-floating=true manage=off # open at default location # https://github.com/koekeishiya/yabai/blob/master/doc/yabai.asciidoc#rule # tip: reset using yabai -m rule --apply yabai -m rule --add app='Todoist' is-floating=false display=west # grid=2:3:-1440:-176:919:1267 yabai -m rule --add app='Fantastical' display=west # grid=2:3:-521:-176:520:1267 yabai -m rule --add app='Spotify' display=west yabai -m rule --add app='Discord' display=east yabai -m rule --add app='Slack' display=east yabai -m rule --add app='Teams' display=east # end of configuration echo "yabai configuration loaded.."