Skip to content

Commit 3422318

Browse files
committed
Bind reset and bootloader to different keys
Necessary so they work on the correct half on split kbs. Wrapping them in a tap-dance won't work. See zmkfirmware/zmk#1494
1 parent 7e3b3f1 commit 3422318

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

config/corneish_zen.keymap

+3-10
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,6 @@
119119
hold-trigger-key-positions = <KEYS_L THUMBS>;
120120
};
121121

122-
rst_boot: rst_boot {
123-
compatible = "zmk,behavior-tap-dance";
124-
label = "RST_BOOT";
125-
#binding-cells = <0>;
126-
tapping-term-ms = <200>;
127-
bindings = <&sys_reset>, <&bootloader>;
128-
};
129-
130122
// tap: sticky shift | double tap: capsword | triple tap: cancel capsword
131123
td_shft: td_shft {
132124
compatible = "zmk,behavior-tap-dance";
@@ -290,16 +282,17 @@
290282
misc2_layer {
291283
label = "MISC 2";
292284
bindings = <
285+
// NOTE: &sys_reset and &bootloader need to be directly bound to a key for locality (correct half affected) to work, see https://github.com/zmkfirmware/zmk/issues/1494
293286
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
294-
// ├ Rst/Bootldr ┼ ┼ ┼ ┼ ┼ Out Toggle ┤ ├ ┼ ┼ ┼ ┼ ┼ Rst/Bootldr
287+
// ├ Reset ┼ Bootloader ┼ ┼ ┼ ┼ Out Toggle ┤ ├ ┼ ┼ ┼ ┼ Bootloader ┼ Reset
295288
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
296289
// ├ ┼ Undo ┼ Cut ┼ Copy ┼ Paste ┼ 1Password ┤ ├ ┼ ┼ ┼ ┼ ┼ ┤
297290
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
298291
// ├ Clr BT prof ┼ BT prof 1 ┼ BT prof 2 ┼ BT prof 3 ┼ BT prof 4 ┼ BT prof 5 ┤ ├ ┼ ┼ ┼ ┼ ┼ ┤
299292
// ╰───────────────────────────┴─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┴───────────────────────────╯
300293
// ├ // HELD // ┼ ┼ ┤ ├ ┼ ┼ ┤
301294
// ╰─────────────┴─────────────┴─────────────╯ ╰─────────────┴─────────────┴─────────────╯
302-
&rst_boot &none &none &none &none &out OUT_TOG &none &none &none &none &none &rst_boot
295+
&sys_reset &bootloader &none &none &none &out OUT_TOG &none &none &none &none &bootloader &sys_reset
303296
&none &kp LC(Z) &kp LC(X) &kp LC(C) &kp LC(V) &kp LC(LS(X)) &none &none &none &none &none &none
304297
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
305298
&trans &none &none &none &none &none

0 commit comments

Comments
 (0)