-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskhdrc
78 lines (61 loc) · 2.53 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
# opens alacritty
#alt - return : open -na /Applications/Alacritty.app
alt - return : yabai -m space --focus Alacritty
# Navigation
shift + ctrl- h : yabai -m window --focus west
shift + ctrl- j : yabai -m window --focus south
shift + ctrl- k : yabai -m window --focus north
shift + ctrl- 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
# Move focus container to workspace
shift + alt - 1 : yabai -m window --display 1 && yabai -m display --focus 1
shift + alt - 2 : yabai -m window --display 2 && yabai -m display --focus 2
# fast focus desktop
alt - x : yabai -m display --focus recent
alt - 1 : yabai -m display --focus 1
alt - 2 : yabai -m display --focus 2
# 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
# Float and center window
shift + alt - c : yabai -m window --toggle float;\
yabai -m window --grid 4:4:1:1:2:2
# Equalize size of windows
lctrl + alt - 0 : yabai -m space --balance
# Enable / Disable gaps in current workspace
lctrl + alt - g : yabai -m space --toggle padding; yabai -m space --toggle gap
# Rotate windows clockwise and anticlockwise
alt - r : yabai -m space --rotate 90
shift + alt - r : yabai -m space --rotate 270
# Rotate on X and Y Axis
shift + alt - x : yabai -m space --mirror x-axis
shift + alt - y : yabai -m space --mirror y-axis
# Set insertion point for focused container
shift + lctrl + alt - h : yabai -m window --insert west
shift + lctrl + alt - j : yabai -m window --insert south
shift + lctrl + alt - k : yabai -m window --insert north
shift + lctrl + alt - l : yabai -m window --insert east
# Float / Unfloat window
shift + alt - space : yabai -m window --toggle float
# Restart Yabai
shift + lctrl + alt - r :
/usr/bin/env osascript <<< \
"display notification \"Restarting Yabai\" with title \"Yabai\""; \
launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"
# Make window native fullscreen
alt - f : yabai -m window --toggle zoom-fullscreen
shift + alt - f : yabai -m window --toggle native-fullscreen