-
Notifications
You must be signed in to change notification settings - Fork 0
/
.skhdrc
executable file
·71 lines (57 loc) · 2.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
59
60
61
62
63
64
65
66
67
68
69
70
71
# focus window
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
# swap managed window
shift + alt - h : yabai -m window --swap west
shift + alt - j : yabai -m window --swap south
shift + alt - k : yabai -m window --swap north
shift + alt - l : yabai -m window --swap east
# move managed window
# shift + alt + ctrl - h : yabai -m window --warp west
# shift + alt + ctrl - j : yabai -m window --warp south
# shift + alt + ctrl - k : yabai -m window --warp north
# shift + alt + ctrl - l : yabai -m window --warp east
# rotate tree
alt - r : yabai -m space --rotate 90
# toggle window fullscreen zoom
alt - f : yabai -m window --toggle zoom-fullscreen
# alt - s : yabai -m window --toggle
alt - s : yabai -m window --toggle sticky;\
yabai -m window --toggle topmost;\
yabai -m window --toggle pip
# toggle padding and gap
alt - g : yabai -m space --toggle padding; yabai -m space --toggle gap
# float / unfloat window and center on screen
alt - t : yabai -m window --toggle float;\
yabai -m window --grid 4:4:1:1:2:2
# toggle window split type
alt - e : yabai -m window --toggle split
# shift focus
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
# move window and focus desktop
shift + alt - 1 : yabai -m window --space 1; yabai -m space --focus 1
shift + alt - 2 : yabai -m window --space 2; yabai -m space --focus 2
shift + alt - 3 : yabai -m window --space 3; yabai -m space --focus 3
shift + alt - 4 : yabai -m window --space 4; yabai -m space --focus 4
shift + alt - 5 : yabai -m window --space 5; yabai -m space --focus 5
shift + alt - 6 : yabai -m window --space 6; yabai -m space --focus 6
# create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
shift + alt - n : yabai -m space --create; and set index (yabai -m query --spaces --display | jq 'map(select(."is-native-fullscreen" == false))[-1].index'); and if test "$index" != "null"; yabai -m window --space $index; yabai -m space --focus $index; end
# create new workspace
alt - n : yabai -m space --create
#delete new workspace
alt - d : yabai -m space --destroy
# balance size of windows
shift + alt - 0 : yabai -m space --balance
# https://github.com/koekeishiya/yabai/issues/200
shift + alt - a : yabai -m window west --resize right:-100:0 2> /dev/null || yabai -m window --resize right:-100:0
shift + alt - s : yabai -m window north --resize bottom:0:100 2> /dev/null || yabai -m window --resize bottom:0:100
shift + alt - w : yabai -m window south --resize top:0:-100 2> /dev/null || yabai -m window --resize top:0:-100
shift + alt - d : yabai -m window east --resize left:100:0 2> /dev/null || yabai -m window --resize left:100:0