Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 1281812

Browse files
authored
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 d18718b commit 1281812

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
@@ -112,14 +112,6 @@
112112
hold-trigger-key-positions = <KEYS_L THUMBS>;
113113
};
114114

115-
rst_boot: rst_boot {
116-
compatible = "zmk,behavior-tap-dance";
117-
label = "RST_BOOT";
118-
#binding-cells = <0>;
119-
tapping-term-ms = <200>;
120-
bindings = <&sys_reset>, <&bootloader>;
121-
};
122-
123115
// tap: sticky shift | double tap: capsword | triple tap: cancel capsword
124116
td_shft: td_shft {
125117
compatible = "zmk,behavior-tap-dance";
@@ -283,16 +275,17 @@
283275
misc2_layer {
284276
label = "MISC 2";
285277
bindings = <
278+
// 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
286279
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
287-
// ├ Rst/Bootldr ┼ ┼ ┼ ┼ ┼ Out Toggle ┤ ├ ┼ ┼ ┼ ┼ ┼ Rst/Bootldr
280+
// ├ Reset ┼ Bootloader ┼ ┼ ┼ ┼ Out Toggle ┤ ├ ┼ ┼ ┼ ┼ Bootloader ┼ Reset
288281
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
289282
// ├ ┼ Undo ┼ Cut ┼ Copy ┼ Paste ┼ 1Password ┤ ├ ┼ ┼ ┼ ┼ ┼ ┤
290283
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
291284
// ├ Clr BT prof ┼ BT prof 1 ┼ BT prof 2 ┼ BT prof 3 ┼ BT prof 4 ┼ BT prof 5 ┤ ├ ┼ ┼ ┼ ┼ ┼ ┤
292285
// ╰───────────────────────────┴─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┴───────────────────────────╯
293286
// ├ // HELD // ┼ ┼ ┤ ├ ┼ ┼ ┤
294287
// ╰─────────────┴─────────────┴─────────────╯ ╰─────────────┴─────────────┴─────────────╯
295-
&rst_boot &none &none &none &none &out OUT_TOG &none &none &none &none &none &rst_boot
288+
&sys_reset &bootloader &none &none &none &out OUT_TOG &none &none &none &none &bootloader &sys_reset
296289
&none &kp LC(Z) &kp LC(X) &kp LC(C) &kp LC(V) &kp LC(LS(X)) &none &none &none &none &none &none
297290
&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
298291
&trans &none &none &none &none &none

0 commit comments

Comments
 (0)