-
Notifications
You must be signed in to change notification settings - Fork 0
/
skhdrc
75 lines (65 loc) · 4.14 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
:: default : update_mode.fish default
:: focus @ : update_mode.fish focus
:: swap @ : update_mode.fish swap
:: warp @ : update_mode.fish warp
:: resize @ : update_mode.fish resize
:: toggle @ : update_mode.fish toggle
# CTRL-SPACE is the global hotkey to toggle in/out of modal mode. Entry is
# always to FOCUS mode. Getting out of any mode can also be done with ESCAPE.
default < ctrl-space ; focus # Focus
# default < f4 : yabai -m window --focus prev
# default < 0x83 : yabai -m window --focus next
focus,swap,warp,resize,toggle < space ; default # Default
focus,swap,warp,resize,toggle < f ; focus # Focus
focus,swap,warp,resize,toggle < s ; swap # Swap
focus,swap,warp,resize,toggle < w ; warp # Warp
focus,swap,warp,resize,toggle < r ; resize # Resize
focus,swap,warp,resize,toggle < t ; toggle # Toggle
# Change focus using standard vi directional keys. Enter changes focus to the
# biggest window. You'll see this theme repeated over and over again. Since this
# is such a common operation, no modifier keys are used.
focus < k : yabai -m window --focus north # north
focus < j : yabai -m window --focus south # south
# Utilize fallbacks to shift focus to other display (this only works with two displays)
focus < l : yabai -m window --focus east || yabai -m display --focus east # east
focus < h : yabai -m window --focus west || yabai -m display --focus west # west
focus < return : yabai -m window --focus largest # largest
focus < p : yabai -m window --focus prev # prev
focus < r : yabai -m window --focus recent # recent
focus < n : yabai -m window --focus next # next
focus < b : yabai -m space --layout bsp # bsp
focus < m : yabai -m space --layout stack # stack
focus < tab : yabai -m display --focus recent # other display
# Swap windows using standard vi directional keys.
swap < k : yabai -m window --swap north # north
swap < j : yabai -m window --swap south # south
swap < l : yabai -m window --swap east || begin: yabai -m window --display east ; yabai -m display --focus east; end # east
swap < h : yabai -m window --swap west || begin; yabai -m window --display west ; yabai -m display --focus west; end # west
swap < return : yabai -m window --swap largest # largest
swap < b : yabai -m space --layout bsp # bsp
swap < m : yabai -m space --layout stack # stack
swap < tab : yabai -m window --display recent ; yabai -m display --focus recent # other display
warp < k : yabai -m window --warp north # north
warp < j : yabai -m window --warp south # south
warp < l : yabai -m window --warp east # east
warp < h : yabai -m window --warp west # west
warp < return : yabai -m window --warp largest # largest
# Increase size of window using standard vi directional keys.
resize < k : yabai -m window --resize top:0:-200 # top
resize < j : yabai -m window --resize bottom:0:200 # bottom
resize < l : yabai -m window --resize right:200:0 # right
resize < h : yabai -m window --resize left:-200:0 # left
# Prefix the above with shift to decrease size of window using standard vi
# directional keys.
resize < shift - k : yabai -m window --resize top:0:200 # top
resize < shift - j : yabai -m window --resize bottom:0:-200 # bottom
resize < shift - l : yabai -m window --resize right:-200:0 # right
resize < shift - h : yabai -m window --resize left:200:0 # left
# Toggle various props on current window
toggle < o : yabai -m window --toggle float # float
toggle < u : yabai -m window --toggle native-fullscreen # native fullscreen
# All Modes
focus,swap,warp,resize,toggle < x : yabai -m space --mirror x-axis # flip x-axis
focus,swap,warp,resize,toggle < y : yabai -m space --mirror y-axis # flip y-axis
focus,swap,warp,resize,toggle < i : yabai -m window --toggle split # split
focus,swap,warp,resize,toggle < e : yabai -m space --balance # equalize