Skip to content

Commit

Permalink
Test mod-morph
Browse files Browse the repository at this point in the history
  • Loading branch information
vjraitila committed Feb 13, 2024
1 parent 318695a commit a27b5ed
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions config/corneish_zen.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
};
};

/ {
behaviors {
multa: multiply_select_all {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
bindings = <&kp KP_MULTIPLY>, <&kp FI_A>;
mods = <(MOD_LGUI)>;
keep-mods = <(MOD_LGUI)>;
};
};
};

/ {
keymap {
compatible = "zmk,keymap";
Expand Down Expand Up @@ -80,12 +92,12 @@
// | | / | 7 | 8 | 9 | - | | | | | | | |
// | | * | 4 | 5 | 6 | + | | | | | | | |
// | | , | 1 | 2 | 3 | | | | | | | | |
// | SEL | 0 |(NUM)| | ↩ | ⌫ | |
// | | 0 |(NUM)| | ↩ | ⌫ | |
bindings = <
&none &kp KP_DIVIDE &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_MINUS &none &none &none &none &none &none
&none &kp KP_MULTIPLY &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_PLUS &none &none &none &none &none &none
&none &kp KP_DOT &kp KP_N1 &kp KP_N2 &kp KP_N3 &none &none &none &none &none &none &none
&kp LG(FI_A) &kp KP_N0 &tog 4 &kp KP_ENTER &kp BSPC &none
&none &kp KP_DIVIDE &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_MINUS &none &none &none &none &none &none
&none &multa &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_PLUS &none &none &none &none &none &none
&none &kp KP_DOT &kp KP_N1 &kp KP_N2 &kp KP_N3 &none &none &none &none &none &none &none
&kp LGUI &kp KP_N0 &tog 4 &kp KP_ENTER &kp BSPC &none
>;
};

Expand Down

0 comments on commit a27b5ed

Please sign in to comment.