Skip to content

Commit 504206a

Browse files
committed
feat(keymap): add ing/and 'macombos'
1 parent e3df7d7 commit 504206a

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

config/includes/combos.dtsi

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,24 @@
2727

2828
/*
2929
╭─────────────────────────┬─────────────────────────╮
30-
│ LT4 LT3 LT2 LT1 LT0 │ RT0 RT1 RT2 RT3 RT4 │
31-
│ LM4 LM3 LM2 <--L̵M̵0̵-<CAPSWRD>-R̵M̵0̵--> RT2 RM3 RM4 │
30+
│ LT4 LT3 LT2 LT1 <----<ing>----> RT1 RT2 RT3 RT4 │
31+
│ LM4 LM3 LM2 LM1 <----<the>----> RM1 RM2 RM3 RM4 │
3232
│ LB4 LB3 LB2 LB1 LB0 │ RB0 RB1 RB2 RB3 RB4 │
3333
╰───────────╮ LH2 LH1 LH0 │ RH0 RH1 RH2 ╭───────────╯
3434
╰─────────────┴─────────────╯
3535
*/
36+
ZMK_COMBO(ing, &ing, LT0 RT0, DEF)
37+
ZMK_COMBO(the, &the, LM0 RM0, DEF)
38+
39+
/*
40+
╭─────────────────────────┬─────────────────────────╮
41+
│ LT4 LT3 LT2 <--L̶T̶0̶---<and>---R̶T̶0̶--> RT2 RT3 RT4 │
42+
│ LM4 LM3 LM2 <--L̶M̶1̶-<CAPSWRD>-R̵M̵0̵--> RT2 RM3 RM4 │
43+
│ LB4 LB3 LB2 LB1 LB0 │ RB0 RB1 RB2 RB3 RB4 │
44+
╰───────────╮ LH2 LH1 LH0 │ RH0 RH1 RH2 ╭───────────╯
45+
╰─────────────┴─────────────╯
46+
*/
47+
ZMK_COMBO(and, &and, LT1 RT1, DEF)
3648
ZMK_COMBO(caps_word, &caps_word, LM1 RM1, DEF)
3749

3850
/*
@@ -111,17 +123,6 @@ ZMK_COMBO(ent, &kp RET, RB2 RB3, DEF)
111123
ZMK_COMBO(tilde, &kp TILDE, LB4 LB3, DEF)
112124
ZMK_COMBO(grave, &kp GRAVE, RB3 RB4, DEF)
113125

114-
115-
/*
116-
╭─────────────────────────┬─────────────────────────╮
117-
│ LT4 LT3 LT2 LT1 LT0 │ RT0 RT1 RT2 RT3 RT4 │
118-
│ LM4 LM3 LM2 LM1 LM0 │ RM0 RM1 RM2 RM3 RM4 │
119-
│ LB4 LB3 LB2 LB1 ------<the>------ RB1 RB2 RB3 RB4 │
120-
╰───────────╮ LH2 LH1 LH0 │ RH0 RH1 RH2 ╭───────────╯
121-
╰─────────────┴─────────────╯
122-
*/
123-
ZMK_COMBO(the, &the, LB0 RB0, DEF)
124-
125126
/*
126127
╭──────────────┬───┬──────┬─────────────────────────╮
127128
│ LT4 LT3 LT2 # ^ │ $ * RT2 RT3 RT4 │

config/includes/macros.dtsi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,23 @@
1818
tap-ms = <5>;
1919
bindings = <&macro_tap &kp T>, <&macro_release &kp LSHFT>, <&macro_tap &kp H &kp E &kp SPACE>;
2020
)
21+
22+
// 'and' macro
23+
// holding the left shift, this will type 'And'
24+
// otherwise, it will type 'and'
25+
ZMK_MACRO(and,
26+
wait-ms = <5>;
27+
tap-ms = <5>;
28+
bindings = <&macro_tap &kp A>, <&macro_release &kp LSHFT>, <&macro_tap &kp N &kp D &kp SPACE>;
29+
)
30+
31+
// 'ing' macro
32+
// holding the left shift, this will type 'Ing'
33+
// otherwise, it will type 'ing'
34+
ZMK_MACRO(ing,
35+
wait-ms = <5>;
36+
tap-ms = <5>;
37+
bindings = <&macro_tap &kp I>, <&macro_release &kp LSHFT>, <&macro_tap &kp N &kp G &kp SPACE>;
38+
)
2139
};
2240
};

0 commit comments

Comments
 (0)