-
Notifications
You must be signed in to change notification settings - Fork 0
/
.yabairc
executable file
·88 lines (79 loc) · 3.5 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
#
# for this to work you must configure sudo such that
# it will be able to run the command without password
#
# see this wiki page for information:
# - https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition
#
# yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
# sudo yabai --load-sa
#
yabai -m config \
menubar_opacity 0.9 \
display_arrangement_order default \
insert_feedback_color 0xffd75f5f \
split_ratio 0.50 \
split_type auto \
auto_balance on \
external_bar main:30:0
# window
yabai -m config \
window_shadow float \
window_opacity off \
window_border on \
window_border_width 2 \
active_window_opacity 1.0 \
normal_window_opacity 0.8
# mouse
yabai -m config \
mouse_modifier fn \
mouse_action1 move \
mouse_action2 resize \
focus_follows_mouse autoraise \
mouse_follows_focus on
# layout
yabai -m config \
top_padding 5 \
bottom_padding 5 \
left_padding 5 \
right_padding 5 \
window_gap 3 \
layout bsp
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="macfeh" app="^macfeh$" manage=off
yabai -m rule --add label="System Preferences" app="^System Preferences$" title=".*" 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="Software Update" title="Software Update" manage=off
yabai -m rule --add label="About This Mac" app="System Information" title="About This Mac" manage=off
# ===== Signals ================================
yabai -m signal --add event=application_front_switched action="${ubersicht_spaces_refresh_command}"
yabai -m signal --add event=display_changed action="${ubersicht_spaces_refresh_command}"
yabai -m signal --add event=space_changed action="${ubersicht_spaces_refresh_command}"
yabai -m signal --add event=window_created action="${ubersicht_spaces_refresh_command}"
yabai -m signal --add event=window_destroyed action="${ubersicht_spaces_refresh_command}"
yabai -m signal --add event=window_focused action="${ubersicht_spaces_refresh_command}"
yabai -m signal --add event=window_title_changed action="${ubersicht_spaces_refresh_command}"
# ignore app
# yabai -m rule --add app="^System Preferences$" manage=off
# yabai -m rule --add app="^Archive Utility$" manage=off
# yabai -m rule --add app="^Logi Options+$" manage=off
# yabai -m rule --add app="^Alfred Preferences$" manage=off
# status_bar
# yabai -m config status_bar on
# yabai -m config status_bar_text_font "LXGW WenKai:Bold:12.0"
# yabai -m config status_bar_icon_font "FontAwesome:Regular:12.0"
# yabai -m config status_bar_background_color 0xff202020
# yabai -m config status_bar_foreground_color 0xffa8a8a8
# yabai -m config status_bar_space_icon_strip I II III IV V VI VII VIII IX X
# yabai -m config status_bar_power_icon_strip
# yabai -m config status_bar_space_icon
# yabai -m config status_bar_clock_icon
osascript -e 'tell application id "tracesOf.Uebersicht" to refresh'
echo "yabai configuration loaded.."