Skip to content

Commit

Permalink
Trying out a hold-tap for ALT and a momentary layer on the same key.
Browse files Browse the repository at this point in the history
  • Loading branch information
amacleod committed Feb 9, 2025
1 parent 2e77110 commit f6ca0f0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ keymap {
&kp T &kp Q &kp W &kp E &kp R &qkp Y &qkp U &qkp I &qkp O &qkp P
&kp LSHIFT &kp A &kp S &kp D &kp F &qkp H &qkp J &qkp K &qkp L &qkp SEMI
&kp LCTRL &kp Z &kp X &kp C &tch V &qkp N &qkp M &qkp COMMA &qkp DOT &qkp FSLH
&mo OVERLAY &kp SPACE &qkp SPACE &to QWERTY
&mlt LALT OVERLAY &kp SPACE &qkp SPACE &to QWERTY
>;
display-name = "F A C";
};
Expand Down Expand Up @@ -123,6 +123,18 @@ behaviors {
tapping-term-ms = <200>;
quick-tap-ms = <100>;
};
// Hold a key while waiting for a possible tap of a key within the
// layer specified in the tap part. It has a high tapping term so
// that you can hold the key for a couple of seconds and still
// decide to hit a layer key.
mlt: momentary_layer_tap {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
bindings = <&kp &mo>;
flavor = "tap-preferred";
tapping-term-ms = <2500000>;
hold-while-undecided;
};
// Hold to invoke the tap-followed-by-H macro. For the use case of
// sending VVH for Factorio flipping, use a no-op keycode like
// K_CANCEL as the tap portion.
Expand Down

0 comments on commit f6ca0f0

Please sign in to comment.