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

Commit

Permalink
Bind reset and bootloader to different keys
Browse files Browse the repository at this point in the history
Necessary so they work on the correct half on split kbs.
Wrapping them in a tap-dance won't work.
See zmkfirmware/zmk#1494
  • Loading branch information
alexvy86 authored Jul 26, 2023
1 parent d18718b commit 1281812
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions config/corneish_zen.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,6 @@
hold-trigger-key-positions = <KEYS_L THUMBS>;
};

rst_boot: rst_boot {
compatible = "zmk,behavior-tap-dance";
label = "RST_BOOT";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&sys_reset>, <&bootloader>;
};

// tap: sticky shift | double tap: capsword | triple tap: cancel capsword
td_shft: td_shft {
compatible = "zmk,behavior-tap-dance";
Expand Down Expand Up @@ -283,16 +275,17 @@
misc2_layer {
label = "MISC 2";
bindings = <
// 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
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
//Rst/Bootldr ┼ ┼ ┼ ┼ ┼ Out Toggle ┤ ├ ┼ ┼ ┼ ┼ ┼ Rst/Bootldr
// Reset ┼ Bootloader ┼ ┼ ┼ ┼ Out Toggle ┤ ├ ┼ ┼ ┼ ┼ Bootloader ┼ Reset
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
// ├ ┼ Undo ┼ Cut ┼ Copy ┼ Paste ┼ 1Password ┤ ├ ┼ ┼ ┼ ┼ ┼ ┤
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
// ├ Clr BT prof ┼ BT prof 1 ┼ BT prof 2 ┼ BT prof 3 ┼ BT prof 4 ┼ BT prof 5 ┤ ├ ┼ ┼ ┼ ┼ ┼ ┤
// ╰───────────────────────────┴─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┴───────────────────────────╯
// ├ // HELD // ┼ ┼ ┤ ├ ┼ ┼ ┤
// ╰─────────────┴─────────────┴─────────────╯ ╰─────────────┴─────────────┴─────────────╯
&rst_boot &none &none &none &none &out OUT_TOG &none &none &none &none &none &rst_boot
&sys_reset &bootloader &none &none &none &out OUT_TOG &none &none &none &none &bootloader &sys_reset
&none &kp LC(Z) &kp LC(X) &kp LC(C) &kp LC(V) &kp LC(LS(X)) &none &none &none &none &none &none
&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
&trans &none &none &none &none &none
Expand Down

0 comments on commit 1281812

Please sign in to comment.