Skip to content

Commit

Permalink
Toggle tap
Browse files Browse the repository at this point in the history
  • Loading branch information
Promytheos authored Aug 21, 2024
1 parent 27acc61 commit 3dbeb80
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions config/splitkb_aurora_corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,23 @@
#define NUMBER 1
#define SYMBOL 2
#define FUNCTION 3
#define MO_TOG(layer) &mo_tog layer layer

&mt {
flavor = "tap-preferred";
};

/ {
behaviors {
mo_tog: behavior_mo_tog {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
flavor = "hold-preferred";
tapping-term-ms = <200>;
bindings = <&mo>, <&tog>;
};
};

keymap {
compatible = "zmk,keymap";

Expand All @@ -29,10 +40,10 @@
// | SHFT | Z | X | C | V | B | | N | M | , | . | / | ' |
// | FUN | NUM | SPC | | SPC | SYM | ALT |
bindings = <
&gresc &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp TAB &mt LGUI A &mt LALT S &mt LSHFT D &mt LCTRL F &kp G &kp H &mt RCTRL J &mt RSHFT K &mt RALT L &mt RGUI SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RET
&mo FUNCTION &tog NUMBER &kp SPACE &kp SPACE &mo SYMBOL &kp RALT
&gresc &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp TAB &mt LGUI A &mt LALT S &mt LSHFT D &mt LCTRL F &kp G &kp H &mt RCTRL J &mt RSHFT K &mt RALT L &mt RGUI SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RET
MO_TOG(FUNCTION) MO_TOG(NUMBER) &kp SPACE &kp SPACE &mo SYMBOL &kp RALT
>;
};
number_layer {
Expand Down

0 comments on commit 3dbeb80

Please sign in to comment.