-
Notifications
You must be signed in to change notification settings - Fork 1
/
.skhdrc
executable file
·94 lines (74 loc) · 3.67 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
90
91
92
93
##################################################################################
# My configs
##################################################################################
# reload yabai
shift + cmd - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"
# directional navigation
ctrl + cmd - h : yabai -m window --focus west
ctrl + cmd - l : yabai -m window --focus east
ctrl + cmd - j : yabai -m window --focus south
ctrl + cmd - k : yabai -m window --focus north
# directional swap
ctrl + alt - h : yabai -m window --swap west
ctrl + alt - l : yabai -m window --swap east
ctrl + alt - j : yabai -m window --swap south
ctrl + alt - k : yabai -m window --swap north
# directional movement
cmd + alt - h : yabai -m window --warp west
cmd + alt - l : yabai -m window --warp east
cmd + alt - j : yabai -m window --warp south
cmd + alt - k : yabai -m window --warp north
# move window to next(n) space
ctrl + cmd - n : yabai -m window --space next; yabai -m space --focus next
# move window back to prev(p) space
ctrl + cmd - p : yabai -m window --space prev; yabai -m space --focus prev
# cycle layourts
shift + cmd - c : yabai -m space --rotate 270
# move mission-control index left/right (replaced by native keyboard shortcuts)
# shift + cmd - h : yabai -m space --focus prev
# shift + cmd - l : yabai -m space --focus next
# toggle fullscreen or split
ctrl + cmd - f : yabai -m window --toggle native-fullscreen
ctrl + cmd - s : yabai -m window --toggle split && \
yabai -m space --balance
# create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
# shift + cmd - j : 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}"
# similar to above, but to the left
# shift + cmd - k : yabai -m space --create && \
# index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
# yabai -m space "${index}" --move 1 && \
# yabai -m window --space 1 && \
# yabai -m space --focus 1
# beam window to numbered space
ctrl + cmd - 1 : yabai -m space --focus 1
ctrl + cmd - 2 : yabai -m space --focus 2
ctrl + cmd - 3 : yabai -m space --focus 3
ctrl + cmd - 4 : yabai -m space --focus 4
ctrl + cmd - 5 : yabai -m space --focus 5
ctrl + cmd - 6 : yabai -m space --focus 6
# destroy spaces
shift + cmd - w : yabai -m space --destroy
# open finder to file storage drive
shift + cmd - o : open /zz
# open apps: terminal(t), browser(b)
shift + cmd - b : /Applications/Vivaldi.app/Contents/MacOS/Vivaldi
shift + cmd - t : /Applications/Alacritty.app/Contents/MacOS/alacritty
# volume contorl
shift + cmd - 0 : osascript -e "set volume output muted true"
shift + cmd - 9 : osascript -e "set volume output muted false"
shift + cmd - 7 : osascript -e "set volume output volume ((output volume of (get volume settings)) - 2)"
shift + cmd - 8 : osascript -e "set volume output volume ((output volume of (get volume settings)) + 2)"
# mission control with thumbnail (requires cliclick)
shift + cmd - m : cliclick -r m:5120,0
# shift + ctrl - up : cliclick -r m:0,0
# hide mouse cursor
shift + cmd - q : cliclick m:2560,1440
# beam apps to their rightful positions
ctrl + cmd - b : yabai -m rule --add app=Vivaldi space=1 && \
yabai -m rule --add app=Emacs space=2 && \
yabai -m rule --add app=Alacritty space=3 && \
yabai -m rule --add app=Spotify space=4 && \
yabai -m rule --add app=WhatsApp space=4