aboutsummaryrefslogtreecommitdiffstats
path: root/chunkwm/.khdrc
diff options
context:
space:
mode:
Diffstat (limited to 'chunkwm/.khdrc')
-rw-r--r--chunkwm/.khdrc151
1 files changed, 0 insertions, 151 deletions
diff --git a/chunkwm/.khdrc b/chunkwm/.khdrc
deleted file mode 100644
index 2c75573..0000000
--- a/chunkwm/.khdrc
+++ /dev/null
@@ -1,151 +0,0 @@
1# reload config
2cmd + alt + ctrl - r : khd -e "reload"
3
4# open terminal, blazingly fast compared to iTerm/Hyper
5cmd - return : open -na /Applications/Kitty.app
6
7# focus window
8alt - h : chunkc tiling::window --focus west
9alt - j : chunkc tiling::window --focus south
10alt - k : chunkc tiling::window --focus north
11alt - l : chunkc tiling::window --focus east
12
13cmd - j : chunkc tiling::window --focus prev
14cmd - k : chunkc tiling::window --focus next
15
16# equalize size of windows
17shift + alt - 0 : chunkc tiling::desktop --equalize
18
19# swap window
20shift + alt - h : chunkc tiling::window --swap west
21shift + alt - j : chunkc tiling::window --swap south
22shift + alt - k : chunkc tiling::window --swap north
23shift + alt - l : chunkc tiling::window --swap east
24
25# move window
26shift + cmd - h : chunkc tiling::window --warp west
27shift + cmd - j : chunkc tiling::window --warp south
28shift + cmd - k : chunkc tiling::window --warp north
29shift + cmd - l : chunkc tiling::window --warp east
30
31# make floating window fill screen
32shift + alt - up : chunkc tiling::window --grid-layout 1:1:0:0:1:1
33
34# make floating window fill left-half of screen
35shift + alt - left : chunkc tiling::window --grid-layout 1:2:0:0:1:1
36
37# make floating window fill right-half of screen
38shift + alt - right : chunkc tiling::window --grid-layout 1:2:1:0:1:1
39
40# move floating windows / windows on a grid space
41# 10 rows 10 cols grid, windows left and top on 0 grid, and have 5 grid width 5 grid height
42alt - q : chunkc tiling::window --grid-layout 10:10:0:0:5:5
43
44# send window to desktop
45shift + alt - x : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop)
46shift + alt - z : chunkc tiling::window --send-to-desktop prev
47shift + alt - c : chunkc tiling::window --send-to-desktop next
48shift + alt - 1 : chunkc tiling::window --send-to-desktop 1
49shift + alt - 2 : chunkc tiling::window --send-to-desktop 2
50shift + alt - 3 : chunkc tiling::window --send-to-desktop 3
51shift + alt - 4 : chunkc tiling::window --send-to-desktop 4
52shift + alt - 5 : chunkc tiling::window --send-to-desktop 5
53shift + alt - 6 : chunkc tiling::window --send-to-desktop 6
54
55# send window to desktop and switch desktop
56shift + cmd - x : `id=$(chunkc get _last_active_desktop); chunkc tiling::window -d $id; khd -p "cmd + alt - $id" &> /dev/null`
57shift + cmd - z : chunkc tiling::window -d prev; khd -p "cmd + alt - z"
58shift + cmd - c : chunkc tiling::window -d next; khd -p "cmd + alt - c"
59shift + cmd - 1 : chunkc tiling::window -d 1; khd -p "cmd + alt - 1"
60shift + cmd - 2 : chunkc tiling::window -d 2; khd -p "cmd + alt - 2"
61shift + cmd - 3 : chunkc tiling::window -d 3; khd -p "cmd + alt - 3"
62shift + cmd - 4 : chunkc tiling::window -d 4; khd -p "cmd + alt - 4"
63shift + cmd - 5 : chunkc tiling::window -d 5; khd -p "cmd + alt - 5"
64shift + cmd - 6 : chunkc tiling::window -d 6; khd -p "cmd + alt - 6"
65
66# switch to last active desktop
67cmd + alt - x : `id=$(chunkc get _last_active_desktop); khd -p "cmd + alt - $id" &> /dev/null`
68
69# focus monitor
70ctrl + alt - z : chunkc tiling::monitor -f prev
71ctrl + alt - c : chunkc tiling::monitor -f next
72ctrl + alt - 1 : chunkc tiling::monitor -f 1
73ctrl + alt - 2 : chunkc tiling::monitor -f 2
74ctrl + alt - 3 : chunkc tiling::monitor -f 3
75
76# send window to monitor and follow focus
77ctrl + cmd - z : chunkc tiling::window --send-to-monitor prev; chunkc tiling::monitor -f prev
78ctrl + cmd - c : chunkc tiling::window --send-to-monitor next; chunkc tiling::monitor -f next
79ctrl + cmd - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::monitor -f 1
80ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2
81ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3
82
83# increase region size
84shift + alt - a : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west
85shift + alt - s : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south
86shift + alt - w : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north
87shift + alt - d : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge east
88
89# decrease region size
90shift + cmd - a : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge west
91shift + cmd - s : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge south
92shift + cmd - w : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge north
93shift + cmd - d : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge east
94
95# set insertion point for focused container
96ctrl + alt - f : chunkc tiling::window --use-insertion-point cancel
97ctrl + alt - h : chunkc tiling::window --use-insertion-point west
98ctrl + alt - j : chunkc tiling::window --use-insertion-point south
99ctrl + alt - k : chunkc tiling::window --use-insertion-point north
100ctrl + alt - l : chunkc tiling::window --use-insertion-point east
101
102# rotate tree
103alt - r : chunkc tiling::desktop --rotate 90
104
105# mirror tree y-axis
106alt - y : chunkc tiling::desktop --mirror vertical
107
108# mirror tree x-axis
109alt - x : chunkc tiling::desktop --mirror horizontal
110
111# toggle desktop offset
112alt - a : chunkc tiling::desktop --toggle offset
113
114# toggle window fullscreen
115alt - f : chunkc tiling::window --toggle fullscreen
116
117# toggle window native fullscreen
118shift + alt - f : chunkc tiling::window --toggle native-fullscreen
119
120# toggle window parent zoom
121alt - d : chunkc tiling::window --toggle parent
122
123# toggle window split type
124alt - e : chunkc tiling::window --toggle split
125
126# float / unfloat window and center on screen
127alt - t : chunkc tiling::window --toggle float;\
128 chunkc tiling::window --grid-layout 4:4:1:1:2:2
129
130# toggle sticky, float and resize to picture-in-picture size
131alt - s : chunkc tiling::window --toggle sticky;\
132 chunkc tiling::window --grid-layout 5:5:4:0:1:1
133
134# float next window to be tiled
135shift + alt - t : chunkc set window_float_next 1
136
137# change layout of desktop
138ctrl + alt - a : chunkc tiling::desktop --layout bsp
139ctrl + alt - s : chunkc tiling::desktop --layout monocle
140ctrl + alt - d : chunkc tiling::desktop --layout float
141
142ctrl + alt - w : chunkc tiling::desktop --deserialize ~/.chunkwm_layouts/dev_1
143
144# remap caps-lock to escape for this config only !!!
145# macos sierra can also perform this remap for a given keyboard
146- capslock : khd -p "- escape"
147
148# key remap for norwegian layout \ { }
149cmd - 7 : khd -p "shift + alt - 7"
150cmd - 8 : khd -p "shift + alt - 8"
151cmd - 9 : khd -p "shift + alt - 9"