cdotfis-mac/dotfiles/.config/yabai/yabairc

52 lines
2.3 KiB
Bash
Executable File

#!/usr/bin/env sh
#yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
#sudo yabai --load-sa
yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
yabai -m signal --add event=window_created action="sketchybar --trigger windows_on_spaces"
yabai -m signal --add event=window_destroyed action="sketchybar --trigger windows_on_spaces"
yabai -m config \
mouse_follows_focus off \
focus_follows_mouse off \
window_origin_display default \
window_placement second_child \
window_topmost off \
window_shadow on \
window_animation_duration 0.0 \
window_opacity_duration 0.0 \
active_window_opacity 1.0 \
normal_window_opacity 0.90 \
window_opacity off \
insert_feedback_color 0xffd75f5f \
active_window_border_color 0xff775759 \
normal_window_border_color 0xff555555 \
window_border_width 2 \
window_border_radius 11 \
window_border_blur off \
window_border_hidpi off \
window_border on \
split_ratio 0.50 \
split_type auto \
auto_balance off \
top_padding 10 \
bottom_padding 10 \
left_padding 10 \
right_padding 10 \
window_gap 06 \
layout bsp \
mouse_modifier fn
top_padding 40 \
yabai -m rule --add app="^(LuLu|Calculator|Software Update|Dictionary|System Preferences|System Settings|zoom.us|Photo Booth|Archive Utility|Python|LibreOffice|App Store|Activity Monitor)$" manage=off
yabai -m rule --add title='mylauncher' manage=off sticky=on sub-layer=above
yabai -m rule --add title='scratchpad' sub-layer=above space=10 grid=4:4:1:1:2:2 manage=off
/Users/slococo/.local/bin/open.sh &
#/Users/slococo/.local/bin/doNotCharge.sh &
(sleep 5 && /usr/local/bin/clauncher update) &