-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyabairc
executable file
·66 lines (54 loc) · 2.42 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env sh
# Initialize yabai
sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
# Follow mouse
yabai -m config mouse_follows_focus on
yabai -m config focus_follows_mouse off
# Window
## New window spawn on the left side
yabai -m config window_placement second_child
yabai -m config window_topmost off
yabai -m config window_shadow on
## Border (currently disabled)
yabai -m config window_border off
yabai -m config window_border_width 2
yabai -m config active_window_border_color 0xff002d47
yabai -m config normal_window_border_color 0xff212121
yabai -m config insert_feedback_color 0xffd75f5f
## Split the amount of the previous window
yabai -m config split_ratio 0.50
yabai -m config auto_balance off
## Mouse actions
yabai -m config mouse_modifier fn
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
## Paddings
yabai -m config top_padding 20
yabai -m config bottom_padding 20
yabai -m config left_padding 20
yabai -m config right_padding 20
yabai -m config window_gap 20
## Space labels
yabai -m space 1 --label web
yabai -m space 2 --label work
yabai -m space 4 --label comms
yabai -m space 5 --label terminal
# Space settings
yabai -m config layout bsp
# Window rules
yabai -m rule --add app="^Firefox$" space=web
yabai -m rule --add app="^Chrome$" space=work
yabai -m rule --add app="^Systeminnstillinger$" manage=off
yabai -m rule --add app="^Pika$" manage=off sticky=on layer=above
yabai -m rule --add app="^Alfred Preferences$" manage=off
yabai -m rule --add app="^Mullvad VPN$" manage=off border=off
yabai -m rule --add app="^Installerer$" manage=off sticky=on
yabai -m rule --add app="^TeamViewer$" manage=off
yabai -m rule --add app="^Numi$" manage=off sticky=on
yabai -m rule --add app="^Harvest$" manage=off
yabai -m rule --add app="^LibreOffice$" manage=off
yabai -m rule --add app="^Bilde i bilde$" manage=off
yabai -m rule --add app="^Dato$" manage=off
yabai -m rule --add app="^LuLu$" manage=off sticky=on layer=above
echo "yabai configuration loaded.."