diff --git a/config/keymap/behaviors.dtsi b/config/keymap/behaviors.dtsi index 61d3d9b..81fc50a 100644 --- a/config/keymap/behaviors.dtsi +++ b/config/keymap/behaviors.dtsi @@ -39,6 +39,14 @@ quick-tap-ms = <220>; bindings = <&mo>, <&qt_grv>; }; + + ht_qu: hold_tap_qu { + compatible = "zmk,behavior-hold-tap"; + #binding-cells = <2>; + flavor = "tap-preferred"; + tapping-term-ms = <220>; + bindings = <&kp>, <&qu>; + } }; }; @@ -124,6 +132,7 @@ GM(n_tab_desk, &kp LC(TAB), &kp LC(LG(RIGHT))) MASKED(left_masked, (MOD_RSFT|MOD_LSFT), &kp LEFT) + MASKED(u_masked, (MOD_RSFT|MOD_LSFT), &kp U) }; }; diff --git a/config/keymap/combos.dtsi b/config/keymap/combos.dtsi index c595499..84a73bf 100644 --- a/config/keymap/combos.dtsi +++ b/config/keymap/combos.dtsi @@ -69,7 +69,7 @@ COMBO(pipe, &kp DE_PIPE, RM3 RB3 , DEF, COMBO_TERM_FAST) COMBO(z, &kp DE_Z, LB3 LB2 , DEF, COMBO_TERM_MID) - COMBO(q, &kp Q, LT2 LT1 , DEF, COMBO_TERM_MID) + COMBO(qu, &ht_qu Q 0, LT2 LT1 , DEF, COMBO_TERM_MID) COMBO(v, &kp V, LT3 LT2 , DEF, COMBO_TERM_MID) COMBO(esc, &kp ESC, LM3 LM2 , DEF, COMBO_TERM_MID) COMBO(ret, &kp RET, LM2 LM1 , DEF, COMBO_TERM_MID) diff --git a/config/keymap/macros.dtsi b/config/keymap/macros.dtsi index 912d5bb..81893ab 100644 --- a/config/keymap/macros.dtsi +++ b/config/keymap/macros.dtsi @@ -19,6 +19,12 @@ AP(brc_macro, &kp DE_LBRC, &kp DE_RBRC) // { } <- AP(lgt_macro, &kp DE_LT, &kp DE_GT) // < > <- + ZMK_MACRO(qu, + bindings + = <&kp Q> + , <&u_masked>; + ) + ZMK_MACRO1(bts, bindings = <&out OUT_BLE>