Skip to content

Commit f600fcf

Browse files
committed
Remove labels, add comments, rename label to display-name
1 parent f9bf8c7 commit f600fcf

File tree

1 file changed

+23
-29
lines changed

1 file changed

+23
-29
lines changed

config/charybdis.keymap

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
combos { compatible = "zmk,combos"; };
7474

7575
behaviors {
76+
/* Fancy alt-tab on single key. Might remove timeout to get used to interrup
77+
ting with a key */
7678
swapper: swapper {
7779
compatible = "zmk,behavior-tri-state";
7880
#binding-cells = <0>;
@@ -82,9 +84,9 @@
8284
bindings = <&kt LALT>, <&kp TAB>, <&kt LALT>;
8385
};
8486

87+
/* Mouse buttons on hold for forward/back */
8588
mouse_tap: mouse_tap {
8689
compatible = "zmk,behavior-hold-tap";
87-
label = "MOUSE_TAP";
8890
bindings = <&mkp>, <&kp>;
8991

9092
#binding-cells = <2>;
@@ -93,9 +95,9 @@
9395
quick-tap-ms = <100>;
9496
};
9597

98+
/* Adds layer on hold to existing caps word/caps lock behaviour */
9699
caps_tap: caps_tap {
97100
compatible = "zmk,behavior-hold-tap";
98-
label = "CAPS_TAP";
99101
bindings = <&mo>, <&shiftcaps>;
100102

101103
#binding-cells = <2>;
@@ -104,9 +106,9 @@
104106
flavor = "tap-preferred";
105107
};
106108

109+
/* Home Row Mod behaviours */
107110
rhtap: rhtap {
108111
compatible = "zmk,behavior-hold-tap";
109-
label = "RHTAP";
110112
bindings = <&kp>, <&kp>;
111113

112114
#binding-cells = <2>;
@@ -120,7 +122,6 @@
120122

121123
rhshift: rhshift {
122124
compatible = "zmk,behavior-hold-tap";
123-
label = "RHSHIFT";
124125
bindings = <&kp>, <&kp>;
125126

126127
#binding-cells = <2>;
@@ -134,7 +135,6 @@
134135

135136
lhtap: lhtap {
136137
compatible = "zmk,behavior-hold-tap";
137-
label = "LHTAP";
138138
bindings = <&kp>, <&kp>;
139139

140140
#binding-cells = <2>;
@@ -148,7 +148,6 @@
148148

149149
lhshift: lhshift {
150150
compatible = "zmk,behavior-hold-tap";
151-
label = "LHSHIFT";
152151
bindings = <&kp>, <&kp>;
153152

154153
#binding-cells = <2>;
@@ -160,44 +159,40 @@
160159
hold-trigger-on-release;
161160
};
162161

162+
/* Arrow keys - still a work in progress */
163163
lefttd: lefttd {
164164
compatible = "zmk,behavior-tap-dance";
165-
label = "LEFTTD";
166165
#binding-cells = <0>;
167166
bindings = <&kp LEFT_ARROW>, <&mt LC(LS(LEFT_ARROW)) LC(LEFT_ARROW)>;
168167
};
169168

170169
righttd: righttd {
171170
compatible = "zmk,behavior-tap-dance";
172-
label = "RIGHTTD";
173171
#binding-cells = <0>;
174172
bindings = <&mt LC(LS(RIGHT_ARROW)) RIGHT_ARROW>, <&kp LC(RIGHT_ARROW)>;
175173
};
176174

177175
uptd: uptd {
178176
compatible = "zmk,behavior-tap-dance";
179-
label = "UPTD";
180177
#binding-cells = <0>;
181178
bindings = <&mt LC(LS(UP_ARROW)) UP_ARROW>, <&kp LC(UP_ARROW)>;
182179
};
183180

184181
downtd: downtd {
185182
compatible = "zmk,behavior-tap-dance";
186-
label = "DOWNTD";
187183
#binding-cells = <0>;
188184
bindings = <&mt LC(LS(DOWN_ARROW)) DOWN_ARROW>, <&kp LC(DOWN_ARROW)>;
189185
};
190186

187+
/* For nav layer; paste on single tap, windows paste on 2 taps */
191188
pastetd: pastetd {
192189
compatible = "zmk,behavior-tap-dance";
193-
label = "Paste";
194190
#binding-cells = <0>;
195191
bindings = <&kp LC(V)>, <&kp LG(V)>;
196192
};
197193

198194
bracketmm: bracketmm {
199195
compatible = "zmk,behavior-mod-morph";
200-
label = "[]";
201196
bindings = <&kp LEFT_BRACKET>, <&kp RIGHT_BRACKET>;
202197

203198
#binding-cells = <0>;
@@ -206,7 +201,6 @@
206201

207202
parenmm: parenmm {
208203
compatible = "zmk,behavior-mod-morph";
209-
label = "()";
210204
bindings = <&kp LEFT_PARENTHESIS>, <&kp RIGHT_PARENTHESIS>;
211205

212206
#binding-cells = <0>;
@@ -215,7 +209,6 @@
215209

216210
bracemm: bracemm {
217211
compatible = "zmk,behavior-mod-morph";
218-
label = "{}";
219212
bindings = <&kp LEFT_BRACE>, <&kp RIGHT_BRACE>;
220213

221214
#binding-cells = <0>;
@@ -224,36 +217,37 @@
224217

225218
ltgtmm: ltgtmm {
226219
compatible = "zmk,behavior-mod-morph";
227-
label = "LTGTMM";
228220
bindings = <&kp LESS_THAN>, <&kp GREATER_THAN>;
229221

230222
#binding-cells = <0>;
231223
mods = <(MOD_LSFT|MOD_RSFT)>;
232224
};
233225

226+
/* Sticky shift + Layer on hold */
234227
stickyshift_tap: stickyshift_tap {
235228
compatible = "zmk,behavior-hold-tap";
236-
label = "STICKYSHIFT_TAP";
237229
bindings = <&mo>, <&sk>;
238230

239231
#binding-cells = <2>;
240232
tapping-term-ms = <170>;
241233
quick-tap-ms = <100>;
242234
flavor = "tap-preferred";
243235
};
244-
236+
237+
/* Existing caps word behaviour on tap + Real caps lock on Shift-tap. Can be
238+
combined into a further mod-tap for layers. */
245239
shiftcaps: shiftcaps {
246240
compatible = "zmk,behavior-mod-morph";
247-
label = "SHIFTCAPS";
248241
bindings = <&caps_word>, <&kp CAPSLOCK>;
249242

250243
#binding-cells = <0>;
251244
mods = <(MOD_LSFT|MOD_RSFT)>;
252245
};
253-
246+
247+
/* Runs swapper on hold of tab key - consider moving this to alt-tab instead
248+
? */
254249
tabtap: tabtap {
255250
compatible = "zmk,behavior-hold-tap";
256-
label = "TABTAP";
257251
bindings = <&swapper>, <&kp>;
258252

259253
#binding-cells = <2>;
@@ -293,7 +287,7 @@
293287
&kp ENTER &trans &kp TAB &kp SPACE &trans &trans &kp N0 &kp KP_DOT
294288
>;
295289

296-
label = "Numpad";
290+
display-name = "Numpad";
297291
};
298292

299293
SYM {
@@ -305,7 +299,7 @@
305299
&kp ENTER &trans &kp TAB &kp SPACE &trans &trans &trans &sk LEFT_SHIFT
306300
>;
307301

308-
label = "Non-NUM symbols";
302+
display-name = "Non-NUM symbols";
309303
};
310304

311305
MOU {
@@ -317,7 +311,7 @@
317311
&trans &mkp MB3 &mkp MB2 &mkp MB1 &trans &trans &trans &trans
318312
>;
319313

320-
label = "Mouse buttons";
314+
display-name = "Mouse buttons";
321315
};
322316

323317
SLOW {
@@ -329,7 +323,7 @@
329323
&trans &trans &trans &trans &trans &trans &trans &trans
330324
>;
331325

332-
label = "Slow input";
326+
display-name = "Slow input";
333327
};
334328

335329
SCROLL {
@@ -341,7 +335,7 @@
341335
&trans &trans &trans &trans &trans &trans &trans &trans
342336
>;
343337

344-
label = "Convert mouse to scroll";
338+
display-name = "Convert mouse to scroll";
345339
};
346340

347341
SYS {
@@ -353,7 +347,7 @@
353347
&trans &trans &trans &trans &trans &trans &trans &trans
354348
>;
355349

356-
label = "Keyboard internals";
350+
display-name = "Keyboard internals";
357351
};
358352

359353
SLSC {
@@ -365,7 +359,7 @@
365359
&trans &trans &trans &trans &trans &trans &trans &trans
366360
>;
367361

368-
label = "Slow scrolling";
362+
display-name = "Slow scrolling";
369363
};
370364

371365
NAV {
@@ -377,7 +371,7 @@
377371
&kp ENTER &trans &kp TAB &kp SPACE &trans &trans &trans &sk LEFT_SHIFT
378372
>;
379373

380-
label = "Movement keys";
374+
display-name = "Movement keys";
381375
};
382376

383377
SPR {
@@ -389,7 +383,7 @@
389383
&kp ENTER &trans &kp TAB &kp SPACE &trans &trans &trans &sk LEFT_SHIFT
390384
>;
391385

392-
label = "Media, etc";
386+
display-name = "Media, etc";
393387
};
394388

395389
TOP {

0 commit comments

Comments
 (0)