-
Notifications
You must be signed in to change notification settings - Fork 0
/
.yabairc
executable file
·48 lines (38 loc) · 1.44 KB
/
.yabairc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env sh
# sudo yabai --load-sa
# yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
# https://github.com/koekeishiya/yabai/wiki/Configuration
# shasum -a 256 $(which yabai)
# codesign -fs 'yabai-cert' $(brew --prefix yabai)/bin/yabai
# borders
# yabai -m config window_border off
# opacity
yabai -m config window_opacity off
# First two digits are opacity
# yabai -m config active_window_border_color "0x70D08770"
# animation
# yabai -m config window_animation_duration 0.35
# Split direction
# yabai -m config split_type vertical
# global settings
yabai -m config window_shadow float
yabai -m config window_shadow off
yabai -m config window_placement second_child
yabai -m config auto_balance off
yabai -m config layout bsp
# mouse
yabai -m config mouse_modifier alt
yabai -m config mouse_action1 resize
yabai -m config mouse_action2 move
yabai -m config mouse_drop_action stack
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse off
# padding and gaps
yabai -m config top_padding 0
yabai -m config bottom_padding 0
yabai -m config left_padding 0
yabai -m config right_padding 0
yabai -m config window_gap 16
# app exclusions
# yabai -m rule --add app="^System Settings$" manage=off sticky=on layer=above
yabai -m signal --add event=window_created action='yabai -m query --windows --window $YABAI_WINDOW_ID | jq -er ".\"can-resize\" or .\"is-floating\"" || yabai -m window $YABAI_WINDOW_ID --toggle float'