-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.yabairc
executable file
·46 lines (41 loc) · 2.23 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
#!/usr/bin/env sh
# set layout to bsp (managed), other options are float (unmanaged) or stack (layered fullscreen)
yabai -m config layout bsp
# grid format is <rows>:<cols>:<start-x>:<start-y>:<width>:<height>
# tall 6/12 of screen for web
yabai -m rule --add app="^(Google Chrome)$" manage=off grid=1:12:3:0:6:1
# tall
yabai -m rule --add app="^(Clock|System Preferences|System Settings)$" manage=off grid=24:24:5:1:14:22
# left half
yabai -m rule --add app="^(Brave Browser|UTM)$" manage=off grid=12:12:0:4:6:8
# right half
yabai -m rule --add app="^(Console|GitHub|Google Drive|Preview|Safari)$" manage=off grid=1:12:6:0:6:1
# wide 8/12 of screen for Terminal
yabai -m rule --add app="^(Terminal)$" manage=off grid=12:12:2:1:8:10
# tall wide 10/12 of screen for focus
yabai -m rule --add app="^(Books|Code|GarageBand|GIMP|iMovie|Photos)$" manage=off grid=12:12:1:2:10:10
# tall wide 18/24 of screen for video
yabai -m rule --add app="^(Crunchyroll.*|Netflix|TV)$" manage=off grid=24:24:3:3:18:18
# bottom left quarter screen for audio media
yabai -m rule --add app="^(Music|Podcasts|Spotify)$" manage=off grid=2:2:0:1:1:1
# middle center quarter
yabai -m rule --add app="^(1Password|FaceTime|Finder|Photo Booth|QuickTime.*|TextEdit)$" manage=off grid=12:12:3:3:6:6
# middle left quarter
yabai -m rule --add app="^(Firefox|LINE|Reminders|Signal)$" manage=off grid=12:12:0:4:6:6
# middle right quarter
yabai -m rule --add app="^(Messages|WhatsApp.*)$" manage=off grid=12:12:6:4:6:6
# bottom center quarter
yabai -m rule --add app="^(Activity Monitor|App Store|Contacts|Dictionary|Voice Memos)$" manage=off grid=12:12:3:6:6:6
# bottom center 2/3
yabai -m rule --add app="^(Calendar|Disk Utility|Find My|Home|LuLu|Maps|News|Stocks|System Information|Weather)$" manage=off grid=12:12:3:4:6:8
# bottom right 2/3
yabai -m rule --add app="^(Discord|Podman.*)$" manage=off grid=12:12:6:4:6:8
# for vertical screen
yabai -m rule --add app="^(Gmail|Google Calendar|Notes)$" manage=off grid=3:1:0:0:1:1
yabai -m rule --add app="^(Slack)$" manage=off grid=3:1:0:1:1:2
# float some non-resizable apps
yabai -m rule --add app="^(Archive Utility|Calculator)$" manage=off
# apply rules on restart
yabai -m rule --apply
# balance resize windows after rules applied
yabai -m space --balance