-
Notifications
You must be signed in to change notification settings - Fork 3
/
.skhdrc
89 lines (70 loc) · 3.26 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
# open terminal
alt - return : ~/bin/new-iterm-window.scpt
# toggle lofi beats playback
ctrl + alt - m : ~/bin/rofi-beats
# 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
alt - p : yabai -m window --focus prev
alt - n : yabai -m window --focus next
# move window
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
# balance size of windows
shift + alt - 0 : yabai -m space --balance
# send window to desktop and follow focus
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
shift + alt - 7 : yabai -m window --space 7; yabai -m space --focus 7
shift + alt - 8 : yabai -m window --space 8; yabai -m space --focus 8
shift + alt - 9 : yabai -m window --space 9; yabai -m space --focus 9
shift + alt - 0 : yabai -m window --space 10; yabai -m space --focus 10
# resize region like i3
shift + alt - a : yabai -m window --resize left:-20:0 ; yabai -m window --resize right:-20:0
shift + alt - s : yabai -m window --resize bottom:0:20 ; yabai -m window --resize top:0:20
shift + alt - w : yabai -m window --resize top:0:-20 ; yabai -m window --resize bottom:0:-20
shift + alt - d : yabai -m window --resize right:20:0 ; yabai -m window --resize left:-20:0
# rotate tree
alt - r : yabai -m space --rotate 90
# mirror tree y-axis
alt - y : yabai -m space --mirror y-axis
# mirror tree x-axis
alt - x : yabai -m space --mirror x-axis
# toggle window split type
alt - w : yabai -m window --toggle split
# toggle desktop offset
alt - a : yabai -m space --toggle padding; yabai -m space --toggle gap
# toggle window parent zoom
alt - d : yabai -m window --toggle zoom-parent
# toggle window fullscreen zoom
alt - f : yabai -m window --toggle zoom-fullscreen
# float / unfloat window and center on screen
alt - t : yabai -m window --toggle float;\
yabai -m window --grid 4:4:1:1:2:2
# change layout of desktop
#
alt - e : yabai -m space --layout bsp
alt - x : yabai -m space --layout float
## monocle-style support
# via https://github.com/koekeishiya/yabai/issues/83
# Set all windows on active space to zoom-fullscreen
alt - s : yabai -m query --windows --space \
| jq -re '.[] | select(."zoom-fullscreen" == 0) | .id' \
| xargs -I{} yabai -m window {} --toggle zoom-fullscreen
# Set all windows on active space back to normal
alt - z : yabai -m query --windows --space \
| jq -re '.[] | select(."zoom-fullscreen" == 1) | .id' \
| xargs -I{} yabai -m window {} --toggle zoom-fullscreen
# focus monitor
ctrl + alt - h : yabai -m window --display next; yabai -m display --focus next
ctrl + alt - l : yabai -m window --display prev; yabai -m display --focus prev
ctrl + alt - j : yabai -m display --focus next
ctrl + alt - k : yabai -m display --focus prev