Skip to content

Commit

Permalink
try implementing lazy sticky keys
Browse files Browse the repository at this point in the history
  • Loading branch information
RexxStone authored Jul 1, 2023
1 parent 6325b82 commit fff84bd
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions config/urchin.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@
ignore-modifiers;
};

ZMK_BEHAVIOR(sk_lazy, sticky_key, // sticky-key with lazy behavior
bindings = <&kp>;
release-after-ms = <1000>; // release after timeout
ignore-modifiers;
lazy;
)

/ {
behaviors {
apexcl: apos_excl {
Expand All @@ -50,6 +43,17 @@ ZMK_BEHAVIOR(sk_lazy, sticky_key, // sticky-key with lazy behavior
mods = <(MOD_LSFT|MOD_RSFT)>;
};

// separate sticky behavior for lazy keys
sk_lazy: behavior_sk_lazy {
compatible = "zmk,behavior-sticky-key";
label = "sk_lazy";
#binding-cells = <1>;
bindings = <&kp>;
release-after-ms = <1000>;
ignore-modifiers;
lazy;
};

// for alt key
sk_nl: behaviour_sk_nolazy_hold {
compatible = "zmk,behavior-hold-tap";
Expand Down

0 comments on commit fff84bd

Please sign in to comment.