This commit is contained in:
Chow Castro, Marcos 2022-09-19 16:06:20 +02:00
parent dc7954dfda
commit c546d5bc5b

View file

@ -109,6 +109,41 @@
//}}}
*/
/ {
behaviors {
skq: sticky_key_quick_release {
compatible = "zmk,behavior-sticky-key";
label = "STICKY_KEY_QUICK_RELEASE";
#binding-cells = <1>;
bindings = <&kp>;
quick-release;
release-after-ms = <STICKY_KEY_TIMEOUT>;
};
// Sticky key on tap, normal key on hold
// Useful for modifier-clicking without the modifier remaining active
nk: not_so_sticky_key {
compatible = "zmk,behavior-hold-tap";
label = "NOT_SO_STICKY_KEY";
#binding-cells = <2>;
tapping_term_ms = <200>;
flavor = "tap-preferred";
bindings = <&kp>, <&sk>;
};
// A hold-tap that activates without delay (like `&mo`)
mo_tap: mo_with_tap {
compatible = "zmk,behavior-hold-tap";
label = "MO_WITH_TAP";
#binding-cells = <2>;
tapping_term_ms = <0>;
retro-tap;
flavor = "hold-preferred";
bindings = <&mo>, <&kp>;
};
};
keymap {
compatible = "zmk,keymap";
// ### default_layer {{{