-
Notifications
You must be signed in to change notification settings - Fork 0
/
.skhdrc
98 lines (72 loc) · 3.2 KB
/
.skhdrc
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
89
90
91
92
93
94
95
96
97
98
# vi: ft=config
alt - b : yabai -m space --balance
alt - x : yabai -m space --mirror x-axis
alt - y : yabai -m space --mirror y-axis
alt - r : yabai -m space --rotate 90
alt - space : yabai -m window --toggle float;\
yabai -m window --grid 1:9:2:0:5:1
alt - w : yabai -m window --toggle float;\
yabai -m window --grid 1:9:1:0:7:1
alt - f : yabai -m space --layout float;\
yabai -m window --grid 1:1:1:1:1:1
alt - s : yabai -m space --layout float;\
yabai -m config window_border off;\
yabai -m config window_shadow on
alt - d : yabai -m space --layout bsp;\
yabai -m config window_border on;\
yabai -m config window_shadow float
# Increase/decrease gaps
alt - 0x18 : yabai -m space --gap rel:-8
alt - 0x1B : yabai -m space --gap rel:8
# alt - j : yabai -m window --focus stack.next #|| yabai -m window --focus stack.first
# alt - k : yabai -m window --focus stack.prev #|| yabai -m window --focus stack.last
shift + alt - h : yabai -m window --focus west
shift + alt - j : yabai -m window --focus south
shift + alt - k : yabai -m window --focus north
shift + alt - l : yabai -m window --focus east
## Stacks ##
# stack window
shift + ctrl + alt - h : yabai -m window --stack west
shift + ctrl + alt - j : yabai -m window --stack south
shift + ctrl + alt - k : yabai -m window --stack north
shift + ctrl + alt - l : yabai -m window --stack east
# cycle through stacked window
alt - j : yabai -m window --focus stack.next || yabai -m window --focus stack.prev
alt - k : yabai -m window --focus stack.prev || yabai -m window --focus stack.next
# Follow windows when throwing to a new space
shift + alt - n : wid="$(yabai -m query --windows --window | jq -r '.id')" \
&& yabai -m window "${wid}" --space next \
&& yabai -m window --focus "${wid}"
shift + alt - p : wid="$(yabai -m query --windows --window | jq -r '.id')" \
&& yabai -m window "${wid}" --space prev \
&& yabai -m window --focus "${wid}"
alt - return : yabai -m window --toggle zoom-fullscreen
alt - z : yabai -m window --toggle zoom-fullscreen
alt - u : yabai -m window --toggle zoom-parent
alt - i : yabai -m window --toggle split
ctrl + cmd - h : yabai -m window --resize left:-60:0;\
yabai -m window --resize right:-60:0
ctrl + cmd - j : yabai -m window --resize bottom:0:60;\
yabai -m window --resize top:0:60
ctrl + cmd - k : yabai -m window --resize top:0:-60;\
yabai -m window --resize bottom:0:-60
ctrl + cmd - l : yabai -m window --resize right:60:0;\
yabai -m window --resize left:60:0
shift + alt - r : launchctl kickstart -k "gui/${UID}/com.koekeishiya.yabai"
# shift + alt - h : yabai -m window --warp west
# shift + alt - j : yabai -m window --warp south
# shift + alt - k : yabai -m window --warp north
# shift + alt - l : yabai -m window --warp east
# alt - n : yabai -m space --focus next
# alt - p : yabai -m space --focus prev
# alt - 1 : yabai -m space --focus 1
# alt - 2 : yabai -m space --focus 2
# alt - 3 : yabai -m space --focus 3
# alt - 4 : yabai -m space --focus 4
# alt - 5 : yabai -m space --focus 5
# alt - 6 : yabai -m space --focus 6
# alt - 7 : yabai -m space --focus 7
# alt - 8 : yabai -m space --focus 8
# alt - 9 : yabai -m space --focus 9
# alt - c : yabai -m space --create
# shift + alt - c : yabai -m space --destroy