-
Notifications
You must be signed in to change notification settings - Fork 0
/
.yabairc
executable file
·88 lines (77 loc) · 3.22 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env sh
sudo /opt/Homebrew/bin/yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo /opt/Homebrew/bin/yabai --load-sa"
# global settings
yabai -m config external_bar all:40:0
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse off
yabai -m config window_origin_display default
yabai -m config window_placement second_child
yabai -m config window_topmost on
yabai -m config window_shadow on
yabai -m config window_opacity off
yabai -m config window_opacity_duration 2000.0
yabai -m config active_window_opacity 1.0
yabai -m config normal_window_opacity 0.85
yabai -m config window_border off
yabai -m config window_border_width 6
yabai -m config active_window_border_color 0xff775759
yabai -m config normal_window_border_color 0xff555555
yabai -m config insert_feedback_color 0xffd75f5f
yabai -m config split_ratio 0.50
yabai -m config auto_balance off
yabai -m config mouse_modifier fn
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
yabai -m config mouse_drop_action swap
# yabai -m config menubar_opacity 0.9
# general space settings
yabai -m config top_padding 3
yabai -m config bottom_padding 8
yabai -m config left_padding 8
yabai -m config right_padding 8
yabai -m config window_gap 8
yabai -m config layout bsp
yabai -m rule --add app="^iStat*" sticky=on layer=above manage=off border=off
yabai -m rule --add app="^System Settings*" manage=off
yabai -m rule --add app="^Steam*" manage=off
yabai -m rule --add app="^WeChat*" manage=off
# yabai -m rule --add app="^EasyDict*" manage=off
yabai -m rule --add app="^Discord*" manage=off
yabai -m rule --add app="^Telegram*" manage=off
yabai -m rule --add app="^Spotify*" manage=off
yabai -m rule --add app="^IINA*" manage=off
yabai -m rule --add app="^mpv*" manage=off
yabai -m rule --add app="^QuickTime*" manage=off
yabai -m rule --add app="^Finder*" manage=off
yabai -m rule --add app="^musializer*" manage=off
yabai -m rule --add app="^main*" manage=off
yabai -m rule --add app="^Godot*" manage=off
#NOTE: bili danmaku
yabai -m rule --add app="^bilibili*" manage=off
yabai -m rule --add app="^WhsiperAx*" manage=off
yabai -m rule --add app="^Inkscape*" manage=off
#space
yabai -m rule --add app="^Chrome$" space=1
yabai -m rule --add app="^Discord$" space=3
yabai -m rule --add app="^Telegram$" space=3
yabai -m rule --add app="^Spotify$" space=4
#obsidian
yabai -m rule --add app="^Obsidian$" space=5
yabai -m rule --add app="^Notion$" space=5
#lark
# yabai -m rule --add app="^kitty$" space=2
yabai -m rule --add app="^Code$" space=6
yabai -m rule --add app="^Zed$" space=6
yabai -m rule --add app="^WeChat$" space=7
yabai -m rule --add app="^EasyDict$" space=7
yabai -m rule --add app="^Finder$" space=7
yabai -m rule --add app="^mpv$" space=7
yabai -m rule --add app="^IINA$" space=7
yabai -m rule --add app="^Feishu$" space=7
yabai -m rule --add app="^OBS Studio$" space=8
yabai -m signal --add event=space_changed \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"pecan-workspace-jsx\"'"
yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
yabai -m signal --add event=window_title_changed action="sketchybar --trigger title_change"
echo "yabai configuration loaded.."