-
Notifications
You must be signed in to change notification settings - Fork 2
/
.yabairc
executable file
·51 lines (39 loc) · 1.99 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
#!/bin/bash
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa
# global settings
yabai -m config mouse_follows_focus on
yabai -m config focus_follows_mouse autofocus
yabai -m config window_placement second_child
yabai -m config split_ratio 0.50
yabai -m config auto_balance off
yabai -m config window_opacity on
yabai -m config active_window_opacity 1.0
yabai -m config normal_window_opacity 0.70
yabai -m config window_opacity_duration 0.0
yabai -m config window_shadow on
yabai -m config window_border off
yabai -m config window_border_width 8
yabai -m config window_border_width 4
yabai -m config active_window_border_color 0xFFFF0000
yabai -m config normal_window_border_color 0x01000000
yabai -m config mouse_modifier fn
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
# general space settings
yabai -m config layout bsp
yabai -m config top_padding 10
yabai -m config bottom_padding 10
yabai -m config left_padding 10
yabai -m config right_padding 110
yabai -m config window_gap 10
yabai -m rule --add app=Moniteur manage=off
yabai -m rule --add title="Toggl Track" manage=off
yabai -m rule --add app=Finder title=Copy manage=off
yabai -m rule --add app="System Preferences" manage=off
yabai -m rule --add app="1Password" manage=off
yabai -m rule --add app="^Slack$" scratchpad=slack grid=8:6:1:1:4:6
# focus window below when closing a window
yabai -m signal --add event=window_destroyed action="yabai -m query --windows --window &> /dev/null || yabai -m window --focus mouse"
yabai -m signal --add event=application_terminated action="yabai -m query --windows --window &> /dev/null || yabai -m window --focus mouse"
echo "yabai configuration loaded.."