-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.yabairc
executable file
·50 lines (44 loc) · 2.19 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
#!/bin/sh
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa
yabai -m config \
top_padding 13 \
bottom_padding 8 \
left_padding 8 \
right_padding 8 \
window_gap 8 \
window_topmost off \
window_shadow float \
window_placement second_child \
layout bsp
yabai -m config external_bar all:32:0
function yabai_rule {
yabai -m rule --add "$@"
yabai -m rule --apply "$@"
}
yabai_rule app="^Safari$" space=1
yabai_rule app="^Telegram$" space=2
yabai_rule app="^kitty$" space=3
yabai_rule app="^Linear$" space=4
yabai_rule app="^Discord$" space=4
yabai_rule app="^Vesktop$" space=4
yabai_rule app="^Music$" space=5
yabai_rule app="^Slack$" space=10
yabai_rule app='^Calendar$' space=11
open -a /Applications/kitty.app
yabai -m rule --add app='^System Information$' manage=off
yabai -m rule --add app='^System Settings$' manage=off
yabai -m rule --add app='^Toggl Track$' manage=off layer=normal
yabai -m rule --add title='Preferences$' manage=off
yabai -m rule --add title='Settings$' manage=off
yabai -m rule --add title='Info$' manage=off
yabai -m rule --add title='^Text search$' manage=off
yabai -m rule --add app='^CarSim$' manage=off
yabai -m rule --add app='^Arch.s Scooter Utility$' manage=off
yabai -m rule --add app='^zoom.us$' manage=off
yabai -m rule --add app='^cutentr$' manage=off
yabai -m signal --add event=application_launched app="^Mail$" action="yabai -m query --windows | jq \".[] | select(.pid | tostring == env.YABAI_PROCESS_ID).id\" | xargs -I{} yabai -m window --close {}"
yabai -m signal --add event=application_launched app="^WhatsApp$" action="yabai -m query --windows | jq \".[] | select(.pid | tostring == env.YABAI_PROCESS_ID).id\" | xargs -I{} yabai -m window --close {}"
yabai -m signal --add event=dock_did_restart action="sleep 3 && yabai -m query --windows | jq \".[] | select(.app | tostring == \\\"Mail\\\").id\" | xargs -I{} yabai -m window --close {}"
yabai -m signal --add event=dock_did_restart action="sleep 3 && yabai -m query --windows | jq \".[] | select(.app | tostring == \\\"WhatsApp\\\").id\" | xargs -I{} yabai -m window --close {}"
yabai -m signal --add event=space_changed action="sketchybar --update"