-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.khdrc
93 lines (73 loc) · 3.72 KB
/
.khdrc
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
# remap caps-lock to escape
- capslock : khd -p "- escape"
# re-map/disable quit shortcut
cmd - q [ Firefox, iTerm2, Google Chrome ] : khd -p "cmd - w"
# open new terminal
cmd - return : open -na /Applications/iTerm.app
# when Finder is focused, ⌘N opens a new Finder window so re-use command even
# when finder isn't opened. This disables new windows for all other Apps.
cmd - n [ Finder ] !: open -n ~/
# equalize size of windows
alt - 0 : chunkc tiling::desktop --equalize
# rotate tree
alt - r : chunkc tiling::desktop --rotate 90
# toggle desktop offset
alt - a : chunkc tiling::desktop --toggle offset
# toggle window split type
alt - space : chunkc tiling::tiling::window --toggle split
# toggle window parent zoom
alt - d : chunkc tiling::window --toggle parent
# reload config
shift + alt - r : khd -e "reload"
# float / unfloat window
alt - t : chunkc tiling::window --toggle float
# toggle sticky, float and resize to picture-in-picture size
alt - s : chunkc tiling::window --toggle sticky;\
chunkc tiling::window --warp-floating pip-right
# toggle window fullscreen
alt - f : chunkc tiling::window --toggle fullscreen
# toggle window native fullscreen
shift + alt - return : chunkc tiling::window --toggle native-fullscreen
# move window
cmd - h : chunkc tiling::window --warp west
cmd - j : chunkc tiling::window --warp south
cmd - k : chunkc tiling::window --warp north
cmd - l : chunkc tiling::window --warp east
# swap window
alt - h : chunkc tiling::window --swap west
alt - j : chunkc tiling::window --swap south
alt - k : chunkc tiling::window --swap north
alt - l : chunkc tiling::window --swap east
# move floating windows / windows on a floating space
alt - up : chunkc tiling::window --warp-floating fullscreen
alt - left : chunkc tiling::window --warp-floating left
alt - right : chunkc tiling::window --warp-floating right
cmd - left : chunkc tiling::window --warp-floating top-left
cmd - right : chunkc tiling::window --warp-floating top-right
ctrl - left : chunkc tiling::window --warp-floating bottom-left
ctrl - right : chunkc tiling::window --warp-floating bottom-right
# send window to desktop
shift + alt - 1 : chunkc tiling::window --send-to-desktop 1
shift + alt - 2 : chunkc tiling::window --send-to-desktop 2
shift + alt - 3 : chunkc tiling::window --send-to-desktop 3
shift + alt - 4 : chunkc tiling::window --send-to-desktop 4
shift + alt - 5 : chunkc tiling::window --send-to-desktop 5
shift + alt - 6 : chunkc tiling::window --send-to-desktop 6
# send window to desktop and switch desktop
# @todo requires mission control shortcuts for desktop moves.
shift + cmd - 1 : chunkc tiling::window -d 1; khd -p "ctrl - 1"
shift + cmd - 2 : chunkc tiling::window -d 2; khd -p "ctrl - 2"
shift + cmd - 3 : chunkc tiling::window -d 3; khd -p "ctrl - 3"
shift + cmd - 4 : chunkc tiling::window -d 4; khd -p "ctrl - 4"
shift + cmd - 5 : chunkc tiling::window -d 5; khd -p "ctrl - 5"
shift + cmd - 6 : chunkc tiling::window -d 6; khd -p "ctrl - 6"
# increase region size
ctrl + cmd - h : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west
ctrl + cmd - j : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south
ctrl + cmd - k : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north
ctrl + cmd - l : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge east
# decrease region size
shift + cmd - l : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge west
shift + cmd - k : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge south
shift + cmd - j : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge north
shift + cmd - h : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge east