-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkhdrc
97 lines (74 loc) · 3.46 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
94
95
96
97
# Enable the prefix mode
khd mode prefix prefix on
khd mode prefix timeout 1
khd mode prefix restore default
# System Shortcuts
shift + ctrl + alt + cmd - return : open -a /Applications/Kitty.app
# Emacs keys
# Motion char
ctrl - n ![iTerm2,Emacs,Kitty] : khd -p "- down"
ctrl - p ![iTerm2,Emacs,Kitty] : khd -p "- up"
# forward is already in osx
# back is already in osx
# add shift to select
# Motion word
alt - f ![iTerm2,Emacs,Kitty] : khd -p "alt - right"
alt - b ![iTerm2,Emacs,Kitty] : khd -p "alt - left"
shift + alt - f ![iTerm2,Emacs,Kitty] : khd -p "shift + alt - right"
shift + alt - b ![iTerm2,Emacs,Kitty] : khd -p "shift + alt - left"
# forward delete
alt - d ![iTerm2,Emacs,Kitty] : khd -p "alt - delete"
ctrl - d ![iTerm2,Emacs,Kitty] : khd -p "- delete"
# Top and bottom of text
alt + shift - 0x2B ![iTerm2,Emacs,Kitty] : khd -p "cmd - up"
alt + shift - 0x2F ![iTerm2,Emacs,Kitty] : khd -p "cmd - down"
# Already in osx
# C-a C-e for beginning end of line (add shift to select)
# M-bksp for backward delete word
# C-k for forward delete line
# s-bksp for backward delete line (not an emacs combination)
# Activate prefix mode
shift + ctrl + alt + cmd - space : khd -e "mode activate prefix"
prefix - r : khd -e "reload" && pkill chunkwm
### ChunkWM
# focus window
shift + ctrl + alt + cmd - h : chunkc tiling::window --focus west
shift + ctrl + alt + cmd - j : chunkc tiling::window --focus south
shift + ctrl + alt + cmd - k : chunkc tiling::window --focus north
shift + ctrl + alt + cmd - l : chunkc tiling::window --focus east
# swap window
prefix - h : chunkc tiling::window --swap west
prefix - j : chunkc tiling::window --swap south
prefix - k : chunkc tiling::window --swap north
prefix - l : chunkc tiling::window --swap east
# move window
prefix + shift + ctrl + alt + cmd - h : chunkc tiling::window --warp west
prefix + shift + ctrl + alt + cmd - j : chunkc tiling::window --warp south
prefix + shift + ctrl + alt + cmd - k : chunkc tiling::window --warp north
prefix + shift + ctrl + alt + cmd - l : chunkc tiling::window --warp east
# focus monitor
shift + shift + ctrl + alt + cmd - tab : chunkc tiling::monitor -f prev
shift + ctrl + alt + cmd - tab : chunkc tiling::monitor -f next
shift + ctrl + alt + cmd - 1 : chunkc tiling::monitor -f 1
shift + ctrl + alt + cmd - 2 : chunkc tiling::monitor -f 2
shift + ctrl + alt + cmd - 3 : chunkc tiling::monitor -f 3
# send window to monitor and follow focus
prefix - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::monitor -f 1
prefix - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2
prefix - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3
# rotate tree
shift + ctrl + alt + cmd - r : chunkc tiling::desktop --rotate 90
# mirror tree y-axis
shift + ctrl + alt + cmd - y : chunkc tiling::desktop --mirror vertical
# mirror tree x-axis
shift + ctrl + alt + cmd - x : chunkc tiling::desktop --mirror horizontal
# toggle desktop offset
shift + ctrl + alt + cmd - o : chunkc tiling::desktop --toggle offset
# toggle window fullscreen
shift + ctrl + alt + cmd - f : chunkc tiling::window --toggle fullscreen
# toggle window native fullscreen
prefix - f : chunkc tiling::window --toggle native-fullscreen
# change layout of desktop
shift + ctrl + alt + cmd - a : chunkc tiling::desktop --layout bsp
shift + ctrl + alt + cmd - s : chunkc tiling::desktop --layout monocle
shift + ctrl + alt + cmd - d : chunkc tiling::desktop --layout float