-
Notifications
You must be signed in to change notification settings - Fork 0
/
.skhdrc
58 lines (45 loc) · 1.88 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
# Open Terminal
cmd - return : /Applications/Alacritty.app/Contents/MacOS/alacritty
# Navigation
alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - l : yabai -m window --focus east
# Moving windows
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
# Resize windows
lctrl alt - h : \
yabai -m window --resize left:-20:0 ; \
yabai -m window --resize right:-20:0
lctrl alt - j : \
yabai -m window --resize bottom:0:20 ; \
yabai -m window --resize top:0:20
lctrl alt - k : \
yabai -m window --resize top:0:-20 ; \
yabai -m window --resize bottom:0:-20
lctrl alt - l : \
yabai -m window --resize right:20:0 ; \
yabai -m window --resize left:20:0
# Balance size of windows
alt shift - b : yabai -m space --balance
# Fullscreen
alt - f : yabai -m window --toggle zoom-fullscreen
alt shift - f : yabai -m window --toggle native-fullscreen
# Create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
shift cmd - n : yabai -m space --create && \
index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
yabai -m window --space "${index}" && \
yabai -m space --focus "${index}"
# toggle window split type
alt - e : yabai -m window --toggle split
# Float / unfloat window and center on screen
alt - space : yabai -m window --toggle float;\
yabai -m window --grid 4:4:1:1:2:2
# Toggle sticky( float), topmost, border and picture-in-picture
alt - p : yabai -m window --toggle sticky;\
yabai -m window --toggle topmost;\
yabai -m window --toggle border;\
yabai -m window --toggle pip