forked from ericlovesmath/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.yabairc
executable file
·64 lines (51 loc) · 2.41 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
sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
# bsp or float (default: bsp)
yabai -m config layout bsp
# Override default layout for space 2 only
#yabai -m config --space 3 layout float
# Set all padding and gaps to 20pt (default: 0)
# yabai -m config top_padding 50
yabai -m config top_padding 10
yabai -m config bottom_padding 10
yabai -m config left_padding 10
yabai -m config right_padding 10
yabai -m config window_gap 10
# floating windows are always on top (default: off)
yabai -m config window_topmost on
# yabai -m config window_shadow off
# yabai -m config active_window_border_topmost on
yabai -m config window_border on
yabai -m config window_border_width 3
yabai -m config active_window_border_color 0xff8E83B8
yabai -m config insert_window_border_color 0xff8E83B8
yabai -m config normal_window_border_color 0xff8E83B8
#yabai -m config normal_window_border_color 0xff51425C
yabai -m config window_placement second_child
#yabai -m rule --add app=Terminal border=off
# global settings
#yabai -m config mouse_follows_focus off
#yabai -m config focus_follows_mouse autoraise
# floating windows are always on top (default: off)
yabai -m config window_topmost on
# float system preferences
yabai -m rule --add app="^System Preferences$" manage=off
yabai -m rule --add title="^About This Mac$" manage=off
yabai -m rule --add app="^About This Mac$" manage=off
yabai -m rule --add app="^Macs Fan Control$" manage=off
yabai -m rule --add app="^Alfred Preferences$" manage=off
yabai -m rule --add app="^Godot$" manage=off
yabai -m rule --add app="^Steam$" manage=off
yabai -m rule --add app="^Mail$" manage=off
# yabai -m rule --add app="^Messages$" manage=off
# yabai -m rule --add app="^Godot$" title="^.*(DEBUG)$" manage=off
# Spacebar
# SPACEBAR_HEIGHT=$(spacebar -m config height)
# yabai -m config external_bar all:$SPACEBAR_HEIGHT:0
# yabai -m config external_bar all:35:0
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"
# HEIGHT=$(sketchybar --query bar | jq -r '[.[]][0].height')
# Y_OFFSET=$(sketchybar --query bar | jq -r '[.[]][0].y_offset')
#
# yabai -m config external_bar all:"$(($HEIGHT + $Y_OFFSET))":0