Skip to content

Commit

Permalink
try to introduce single double quote and back tick macro in the numbe…
Browse files Browse the repository at this point in the history
…r layer
  • Loading branch information
MatteoDM committed Nov 29, 2024
1 parent 32301ea commit 235e552
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions boards/shields/swweeep/swweeep.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,26 @@
flavor = "balanced";
bindings = <&kp>, <&kp>;
};
sqm: macro {
label = "SINGLE_QUOTE";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp SQUO>; // Single Quote (')
};

dqm: macro {
label = "DOUBLE_QUOTE";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp DQUO>; // Double Quote (")
};

bm: macro {
label = "BACKTICK";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp GRAVE>; // Backtick (`)
};
};

keymap {
Expand All @@ -65,7 +85,7 @@
&trans &trans &trans &trans &trans &trans
>;
};

"'`"'```
sym_layer {
bindings = <
&trans &kp GRAVE &kp SQT &kp DQT &trans &trans &kp LBRC &kp RBRC &kp AT &trans
Expand All @@ -86,7 +106,7 @@

num_layer {
bindings = <
&trans &kp GRAVE &kp SQT &kp DQT &trans &trans &kp N7 &kp N8 &kp N9 &kp COMMA
&trans &kp bm &kp sqm &kp dqm &trans &trans &kp N7 &kp N8 &kp N9 &kp COMMA
&kp FSLH &kp ASTRK &kp MINUS &kp PLUS &kp PRCNT &kp N0 &kp N4 &kp N5 &kp N6 &kp EQUAL
&kp BSLH &kp LT &kp GT &kp EQUAL &trans &kp N0 &kp N1 &kp N2 &kp N3 &kp DOT
&trans &trans &trans &trans &trans &trans
Expand All @@ -103,4 +123,5 @@
};

};
};
};
"'"err""'``ttt""""'`''

0 comments on commit 235e552

Please sign in to comment.