forked from Shane4STER/etc
-
Notifications
You must be signed in to change notification settings - Fork 2
/
yabairc
executable file
·69 lines (55 loc) · 3.37 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
67
68
69
#!/usr/bin/env bash
# ====== Variables =============================
gaps_top="1"
gaps_bottom="1"
gaps_left="1"
gaps_right="1"
gaps_inner="1"
normal_border_color="010101"
focused_border_color="808080"
preselect_border_color="2d74da"
# ====== Tiling settings =======================
yabai -m config layout bsp
yabai -m config top_padding "${gaps_top}"
yabai -m config bottom_padding "${gaps_bottom}"
yabai -m config left_padding "${gaps_left}"
yabai -m config right_padding "${gaps_right}"
yabai -m config window_gap "${gaps_inner}"
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse off
yabai -m config mouse_modifier fn
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
yabai -m config window_topmost off
yabai -m config window_opacity off
yabai -m config window_shadow float
yabai -m config active_window_opacity 1.0
yabai -m config normal_window_opacity 0.9
yabai -m config split_ratio 0.5
yabai -m config auto_balance off
# ====== Border settings =======================
yabai -m config window_border on
yabai -m config window_border_width 2
yabai -m config active_window_border_color "0xE0${focused_border_color}"
yabai -m config insert_window_border_color "0xE0${preselect_border_color}"
yabai -m config normal_window_border_color "0x00${normal_border_color}"
# ====== List of rules =========================
yabai -m rule --add app="^Digital Colou?r Meter$" sticky=on manage=off
yabai -m rule --add label="Toggl Desktop" app="^TogglDesktop$" manage=off
yabai -m rule --add label="Microsoft Outlook" app="^Microsoft Outlook$" title="Reminder" sticky=on manage=off
#yabai -m rule --add label="Microsoft Teams" app="^Microsoft Teams$" title="^(Loading Microsoft )?Teams$" manage=off grid="2500:1600:-299:1028:300:300"
#yabai -m rule --add label="Microsoft Teams Notification" app="^Microsoft Teams$" title="^Microsoft Teams Notification$" manage=off grid="2500:1600:-299:1028:300:300"
#yabai -m rule --add label="Microsoft Teams Login" app="^Microsoft Teams$" title="^$" manage=off grid="2500:1600:-299:1028:300:300"
yabai -m rule --add label="Cisco AnyConnect Secure Mobility Client" app="^Cisco AnyConnect Secure Mobility Client$" topmost=on manage=off
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
yabai -m rule --add label="Safari" app="^Safari$" title="^(General|(Tab|Password|Website|Extension)s|AutoFill|Se(arch|curity)|Privacy|Advance)$" manage=off
yabai -m rule --add label="System Preferences" app="^System Preferences$" manage=off
yabai -m rule --add label="App Store" app="^App Store$" manage=off
yabai -m rule --add label="Activity Monitor" app="^Activity Monitor$" manage=off
yabai -m rule --add label="KeePassXC" app="^KeePassXC$" manage=off
yabai -m rule --add label="Calculator" app="^Calculator$" manage=off
yabai -m rule --add label="Dictionary" app="^Dictionary$" manage=off
yabai -m rule --add label="mpv" app="^mpv$" manage=off
yabai -m rule --add label="The Unarchiver" app="^The Unarchiver$" manage=off
yabai -m rule --add label="Transmission" app="^Transmission$" manage=off
yabai -m rule --add label="VirtualBox" app="^VirtualBox$" manage=off