Skip to content

Commit

Permalink
Add qu combo
Browse files Browse the repository at this point in the history
  • Loading branch information
englmaxi authored Sep 8, 2024
1 parent 568eb30 commit 6c61d88
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions config/keymap/behaviors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}
};
};

Expand Down Expand Up @@ -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)
};
};

Expand Down
2 changes: 1 addition & 1 deletion config/keymap/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions config/keymap/macros.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 6c61d88

Please sign in to comment.