-
Notifications
You must be signed in to change notification settings - Fork 0
/
.skhdrc
119 lines (92 loc) · 4.36 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# NOTE(koekeishiya):
# A list of all built-in modifier and literal keywords can
# be found at https://github.com/koekeishiya/skhd/issues/1
# Global hotkeys
# default < cmd - return : open -a iTerm # Launch iTerm
# default < shift + cmd - return : open -a Firefox # Launch Firefox
##########################################################################
# 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
# focus windows wasd
alt - s : yabai -m window --focus west
alt - d : yabai -m window --focus south
alt - e : yabai -m window --focus north
alt - f : yabai -m window --focus east
# focus next window/display
# alt - n : yabai -m window --focus next || yabai -m window --focus first
# shift + alt - n : yabai -m display --focus recent
# swap window or move floating windows
shift + alt - h : yabai -m window --swap west || yabai -m window --move rel:-30:0
shift + alt - j : yabai -m window --swap south || yabai -m window --move rel:0:30
shift + alt - k : yabai -m window --swap north || yabai -m window --move rel:0:-30
shift + alt - l : yabai -m window --swap east || yabai -m window --move rel:30:0
# float / unfloat window and center on screen
alt - t : yabai -m window --toggle float;\
yabai -m window --grid 20:20:5:4:10:12
# balance size of windows
alt + shift - 0 : yabai -m space --balance
# rotate tree
alt - r : yabai -m space --rotate 90
# toggle window padding for the space
alt - p : yabai -m space --toggle padding; yabai -m space --toggle gap
# toggle window borders
alt - b : yabai -m window --toggle border
# toggle window zoom fullscreen
alt - f : yabai -m window --toggle zoom-fullscreen
# mirror tree y-axis
alt - y : yabai -m space --mirror y-axis
# mirror tree x-axis
alt - x : yabai -m space --mirror x-axis
# destroy the current desktop
ctrl + alt - w : yabai -m space --destroy
# create a new desktop
ctrl + alt - n : yabai -m space --create;\
yabai -m window --space last;\
sleep 0.5;\
yabai -m space --focus last;
# toggle on top and resize to picture-in-picture size
alt + ctrl + cmd - p : yabai -m window --toggle pip;
# toggle window space stickiness
alt + ctrl + cmd - s : yabai -m window --toggle sticky;
# toggle window native fullscreen
alt + ctrl + cmd - f : yabai -m window --toggle native-fullscreen;
# toggle window always on top
alt + ctrl + cmd - t : yabai -m window --toggle topmost;
# move window to the next/previous/nth desktop
ctrl + cmd - 1 : yabai -m window --space 1; yabai -m space --focus 1
ctrl + cmd - 2 : yabai -m window --space 2; yabai -m space --focus 2
ctrl + cmd - 3 : yabai -m window --space 3; yabai -m space --focus 3
ctrl + cmd - 4 : yabai -m window --space 4; yabai -m space --focus 4
ctrl + cmd - 5 : yabai -m window --space 5; yabai -m space --focus 5
ctrl + cmd - 6 : yabai -m window --space 6; yabai -m space --focus 6
ctrl + cmd - 7 : yabai -m window --space 7; yabai -m space --focus 7
ctrl + cmd - 8 : yabai -m window --space 8; yabai -m space --focus 8
ctrl + cmd - 9 : yabai -m window --space 9; yabai -m space --focus 9
# # move window to the next/previous desktop and follow
# ctrl + cmd - h : yabai -m window --space prev; yabai -m space --focus prev
# ctrl + cmd - l : yabai -m window --space next; yabai -m space --focus next
# move focus to the next/previous desktop
cmd - pagedown : yabai -m space --focus next
cmd - pageup : yabai -m space --focus prev
# move focus to the specified desktop
# 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
# hyper application shortcuts
shift + ctrl + alt + cmd - b: open -a Bitwarden
shift + ctrl + alt + cmd - c: open -a Calendar
shift + ctrl + alt + cmd - d: open -a Chromium
shift + ctrl + alt + cmd - f: open -a Firefox
shift + ctrl + alt + cmd - m: open -a Mail
shift + ctrl + alt + cmd - s: open -a Slack
shift + ctrl + alt + cmd - t: open -a iTerm
shift + ctrl + alt + cmd - v: open -a Visual\ Studio\ Code
shift + ctrl + alt + cmd - y: open -a Yubico\ Authenticator
# restart wm or bar
ctrl + alt + cmd - r : ~/Scripts/refresh-wm.sh
shift + ctrl + alt + cmd - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai";