-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskhdrc
167 lines (133 loc) · 6.87 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# NOTE(koekeishiya): A list of all built-in modifier and literal keywords can
# be found at https://github.com/koekeishiya/skhd/issues/1
#
# A hotkey is written according to the following rules:
#
# hotkey = <keysym> ':' <command> |
# <keysym> '->' ':' <command>
#
# keysym = <mod> '-' <key> | <key>
#
# mod = 'built-in mod keyword' | <mod> '+' <mod>
#
# key = <literal> | <keycode>
#
# literal = 'single letter or built-in keyword'
#
# keycode = 'apple keyboard kVK_<Key> values (0x3C)'
#
# -> = keypress is not consumed by skhd
#
# command = command is executed through '$SHELL -c' and
# follows valid shell syntax. if the $SHELL environment
# variable is not set, it will default to '/bin/bash'.
# when bash is used, the ';' delimeter can be specified
# to chain commands.
#
# to allow a command to extend into multiple lines,
# prepend '\' at the end of the previous line.
#
# an EOL character signifies the end of the bind.
# open terminal, blazingly fast compared to iTerm/Hyper
# cmd - return : open -na /Applications/Kitty.app
cmd - return : osascript -e 'tell application "Terminal to activate' -e 'tell application "System Events" to tell process "Terminal" to keystroke "n" using command down'
# close focused window
fn - w : chunkc tiling::window --close
# focus window
fn - h : chunkc tiling::window --focus west
fn - j : chunkc tiling::window --focus south
fn - k : chunkc tiling::window --focus north
fn - l : chunkc tiling::window --focus east
cmd - j : chunkc tiling::window --focus prev
cmd - k : chunkc tiling::window --focus next
# equalize size of windows
# shift + fn - 0 : chunkc tiling::desktop --equalize
# swap window
# shift + fn - h : chunkc tiling::window --swap west
# shift + fn - j : chunkc tiling::window --swap south
# shift + fn - k : chunkc tiling::window --swap north
# shift + fn - l : chunkc tiling::window --swap east
# move window
# shift + cmd - h : chunkc tiling::window --warp west
# shift + cmd - j : chunkc tiling::window --warp south
# shift + cmd - k : chunkc tiling::window --warp north
# shift + cmd - l : chunkc tiling::window --warp east
# make floating window fill screen
# shift + fn - up : chunkc tiling::window --grid-layout 1:1:0:0:1:1
# make floating window fill left-half of screen
# shift + fn - left : chunkc tiling::window --grid-layout 1:2:0:0:1:1
# make floating window fill right-half of screen
# shift + fn - right : chunkc tiling::window --grid-layout 1:2:1:0:1:1
# send window to desktop
# shift + fn - x : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop)
# shift + fn - z : chunkc tiling::window --send-to-desktop prev
# shift + fn - c : chunkc tiling::window --send-to-desktop next
# shift + fn - 1 : chunkc tiling::window --send-to-desktop 1
# shift + fn - 2 : chunkc tiling::window --send-to-desktop 2
# shift + fn - 3 : chunkc tiling::window --send-to-desktop 3
# shift + fn - 4 : chunkc tiling::window --send-to-desktop 4
# shift + fn - 5 : chunkc tiling::window --send-to-desktop 5
# shift + fn - 6 : chunkc tiling::window --send-to-desktop 6
# focus monitor
fn + ctrl - z : chunkc tiling::monitor -f prev
fn + ctrl - c : chunkc tiling::monitor -f next
fn + ctrl - 1 : chunkc tiling::monitor -f 1
fn + ctrl - 2 : chunkc tiling::monitor -f 2
fn + ctrl - 3 : chunkc tiling::monitor -f 3
# send window to monitor and follow focus
ctrl + cmd - z : chunkc tiling::window --send-to-monitor prev; chunkc tiling::monitor -f prev
ctrl + cmd - c : chunkc tiling::window --send-to-monitor next; chunkc tiling::monitor -f next
ctrl + cmd - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::monitor -f 1
ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2
ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3
# increase region size
# shift + fn - a : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west
# shift + fn - s : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south
# shift + fn - w : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north
# shift + fn - d : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge east
# decrease region size
# shift + cmd - a : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge west
# shift + cmd - s : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge south
# shift + cmd - w : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge north
# shift + cmd - d : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge east
# set insertion point for focused container
fn + ctrl - f : chunkc tiling::window --use-insertion-point cancel
fn + ctrl - h : chunkc tiling::window --use-insertion-point west
fn + ctrl - j : chunkc tiling::window --use-insertion-point south
fn + ctrl - k : chunkc tiling::window --use-insertion-point north
fn + ctrl - l : chunkc tiling::window --use-insertion-point east
# rotate tree
fn - r : chunkc tiling::desktop --rotate 90
# mirror tree y-axis
fn - y : chunkc tiling::desktop --mirror vertical
# mirror tree x-axis
fn - x : chunkc tiling::desktop --mirror horizontal
# toggle desktop offset
fn - a : chunkc tiling::desktop --toggle offset
# toggle window fullscreen
# 0x38 - f : chunkc tiling::window --toggle fullscreen
# fn - f : chunkc tiling::window --toggle fullscreen
shift - 0x0A: chunkc tiling::window --toggle fullscreen
# toggle window native fullscreen
# shift + fn - f : chunkc tiling::window --toggle native-fullscreen
# toggle window parent zoom
fn - d : chunkc tiling::window --toggle parent
# toggle window split type
fn - e : chunkc tiling::window --toggle split
# float / unfloat window and center on screen
fn - t : chunkc tiling::window --toggle float;\
chunkc tiling::window --grid-layout 4:4:1:1:2:2
# toggle sticky, float and resize to picture-in-picture size
fn - s : chunkc tiling::window --toggle sticky;\
chunkc tiling::window --grid-layout 5:5:4:0:1:1
# float next window to be tiled
# shift + fn - t : chunkc set window_float_next 1
# change layout of desktop
fn + ctrl - a : chunkc tiling::desktop --layout bsp
fn + ctrl - s : chunkc tiling::desktop --layout monocle
fn + ctrl - d : chunkc tiling::desktop --layout float
fn + ctrl - w : chunkc tiling::desktop --deserialize ~/.chunkwm_layouts/dev_1
fn + ctrl - s : cd owvs-ui && npm start
ctrl - 1 : yabai -m window --toggle zoom-fullscreen
# 0x0A : alacritty
0x0A : open -a Terminal ~