Skip to content

Commit

Permalink
rename ht to mt
Browse files Browse the repository at this point in the history
  • Loading branch information
englmaxi committed Nov 25, 2023
1 parent 2dd471c commit 3a6814a
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
ignore-modifiers;
};

&mt {
quick-tap-ms = <220>;
tapping-term-ms = <220>;
};

#define HM(NAME, TAP, HT_KEYPOS) \
NAME: NAME { \
compatible = "zmk,behavior-hold-tap"; \
Expand Down Expand Up @@ -90,20 +95,9 @@
SM(bkt_brc, &bkt_macro, &brc_macro)
SM(sqt_dqt_macro, &sqt_macro, &dqt_macro)

ht: ht {
compatible = "zmk,behavior-hold-tap";
label = "HT";
bindings = <&kp>, <&kp>;

#binding-cells = <2>;
flavor = "tap-preferred";
quick-tap-ms = <220>;
tapping-term-ms = <220>;
};

ht_home: ht_home {
mt_home: mt_home {
compatible = "zmk,behavior-hold-tap";
label = "HT_HOME";
label = "MT_HOME";
bindings = <&masked_home>, <&kp>;

#binding-cells = <2>;
Expand All @@ -112,9 +106,9 @@
tapping-term-ms = <220>;
};

ht_end: ht_end {
mt_end: mt_end {
compatible = "zmk,behavior-hold-tap";
label = "HT_END";
label = "MT_END";
bindings = <&masked_end>, <&kp>;

#binding-cells = <2>;
Expand All @@ -123,7 +117,7 @@
tapping-term-ms = <220>;
};

mt_td_scw: mt_td_scw {
mt_td_scw: mt_td_scw { // wrapper for tap-dance, workaround for #1691
compatible = "zmk,behavior-hold-tap";
label = "MT_TD_SCW";
bindings = <&kp>, <&td_scw>;
Expand Down Expand Up @@ -164,6 +158,10 @@
bindings = <&kp DE_LBRC &kp DE_RBRC &kp LEFT>;
)

ZMK_MACRO(sqt_macro,
bindings = <&kp DE_SQT &kp DE_SQT &kp LEFT>;
)

ZMK_MACRO(lgt_macro,
bindings =
<&kp DE_LT &kp DE_GT>,
Expand All @@ -173,10 +171,6 @@
<&kp LEFT>;
)

ZMK_MACRO(sqt_macro,
bindings = <&kp DE_SQT &kp DE_SQT &kp LEFT>;
)

ZMK_MACRO(dqt_macro,
bindings =
<&kp DE_DQT &kp DE_DQT>,
Expand Down Expand Up @@ -213,8 +207,8 @@
label = "NAV";
bindings = <
&kp ESC &kp LC(W) &kp LC(F) &kp BSPC &kp INS &trans &kp PG_DN &kp PG_UP &trans &trans
&sk LGUI &sk LALT &sk LCTRL &sk LSHFT &sk RALT &ht_home 0 LEFT &ht LC(END) DOWN &ht LC(HOME) UP &ht_end 0 RIGHT &kp PAUSE_BREAK
&kp LC(DE_Z) &kp LC(X) &kp LC(INS) &trans &kp LS(INS) &kp RET &ht LC(BSPC) BSPC &kp TAB &ht LC(DEL) DEL &kp PSCRN
&sk LGUI &sk LALT &sk LCTRL &sk LSHFT &sk RALT &mt_home 0 LEFT &mt LC(END) DOWN &mt LC(HOME) UP &mt_end 0 RIGHT &kp PAUSE_BREAK
&kp LC(DE_Z) &kp LC(X) &kp LC(INS) &trans &kp LS(INS) &kp RET &mt LC(BSPC) BSPC &kp TAB &mt LC(DEL) DEL &kp PSCRN
&trans &trans &trans &trans
>;
};
Expand Down

0 comments on commit 3a6814a

Please sign in to comment.