Skip to content

Commit

Permalink
feat: mrkeebs layout
Browse files Browse the repository at this point in the history
  • Loading branch information
fcoury committed Apr 27, 2024
1 parent 530215c commit f7577d8
Showing 1 changed file with 43 additions and 46 deletions.
89 changes: 43 additions & 46 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -10,71 +10,68 @@
#include <dt-bindings/zmk/outputs.h>

#define DEFAULT 0
#define LOWER 1
#define RAISE 2
#define TOP 3
#define EXTRA 1
#define CTRL 2

/ {
combos {
compatible = "zmk,combos";

lang {
bindings = <&kp LG(SPACE)>;
key-positions = <17 18>;
};

hyper {
bindings = <&kp LS(LA(LC(LGUI)))>;
key-positions = <37 40>;
};
};
// combos {
// compatible = "zmk,combos";
//
// lang {
// bindings = <&kp LG(SPACE)>;
// key-positions = <17 18>;
// };
//
// hyper {
// bindings = <&kp LS(LA(LC(LGUI)))>;
// key-positions = <37 40>;
// };
// };

keymap {
compatible = "zmk,keymap";

default_layer {
bindings = <
&lt RAISE TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&mo LOWER &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp 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 ESC
&kp LCTRL &kp LGUI &kp SPACE &kp RET &mo TOP &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
&mt LCTRL TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp RET
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &mo CTRL
&kp LALT &kp LGUI &lt EXTRA SPACE &kp SPACE &kp RGUI &kp RALT
>;
};

lower_layer {
extra_layer {
bindings = <
&kp TAB &kp EXCL &kp AT_SIGN &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &kp DEL
&trans &trans &trans &kp C_VOL_DN &kp C_VOL_UP &kp K_MUTE &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp LBKT &kp GRAVE
&kp LSHFT &trans &trans &kp C_PREV &kp C_NEXT &kp C_PLAY_PAUSE &kp MINUS &kp EQUAL &kp LEFT_BRACE &kp RIGHT_BRACE &kp BSLH &trans
&trans &trans &trans &trans &trans &trans
&kb GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
&trans &trans &kp EQUAL &kp MINUS &trans &trans &trans &kp EQUAL &kp MINUS &kp SEMI &kp SQT &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &kp LBKT &kp RBKT &kp BSLH
&trans &trans &trans &trans &trans &trans
>;
};

raise_layer {
// -----------------------------------------------------------------------------------------
// | TAB | ! | @ | # | $ | % | | - | 7 | 8 | 9 | + | BKSP |

ctrl_layer {
bindings = <
&trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
&kp LCTRL &trans &trans &kp C_VOL_DN &kp C_VOL_UP &kp K_MUTE &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &trans
&kp LSHFT &trans &trans &kp C_PREV &kp C_NEXT &kp C_PLAY_PAUSE &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &kp HOME &kp UP &kp END &trans
&trans &kp K_MUTE &kp C_VOL_DN &kp C_VOL_UP &trans &trans &trans &trans &kp PG_UP &kp LEFT &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &kp PG_DN &kp DOWN &trans &trans
&trans &trans &trans &trans &trans &trans
>;
};

top_layer {
// -----------------------------------------------------------------------------------------
// | TAB | BRIGHT_UP | BRIGHT_DOWN | VOL_DOWN | VOL_UP | MUTE | | - | 7 | 8 | 9 | + | BKSP |
// | CTRL | | | | | | | . | 4 | 5 | 6 | - | ` |
// | SHFT | | | | | | | 0 | 1 | 2 | 3 | * | / |
// | | | | | | | |

bindings = <
&trans &kp C_BRI_DN &kp C_BRI_UP &kp C_VOL_DN &kp C_VOL_UP &kp K_MUTE &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_PLUS &trans &kp BSPC
&kp LCTRL &trans &trans &trans &trans &trans &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_MINUS &trans &kp GRAVE
&kp LSHFT &out OUT_BLE &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 &bt BT_CLR &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_MULTIPLY &kp KP_DIVIDE &trans
&trans &trans &trans &kp KP_N0 &trans &kp KP_DOT
>;
};
// top_layer {
// // -----------------------------------------------------------------------------------------
// // | TAB | BRIGHT_UP | BRIGHT_DOWN | VOL_DOWN | VOL_UP | MUTE | | - | 7 | 8 | 9 | + | BKSP |
// // | CTRL | | | | | | | . | 4 | 5 | 6 | - | ` |
// // | SHFT | | | | | | | 0 | 1 | 2 | 3 | * | / |
// // | | | | | | | |
//
// bindings = <
// &trans &kp C_BRI_DN &kp C_BRI_UP &kp C_VOL_DN &kp C_VOL_UP &kp K_MUTE &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_PLUS &trans &kp BSPC
// &kp LCTRL &trans &trans &trans &trans &trans &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_MINUS &trans &kp GRAVE
// &kp LSHFT &out OUT_BLE &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 &bt BT_CLR &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_MULTIPLY &kp KP_DIVIDE &trans
// &trans &trans &trans &kp KP_N0 &trans &kp KP_DOT
// >;
// };
};
};

0 comments on commit f7577d8

Please sign in to comment.