|
4 | 4 | #include <dt-bindings/zmk/outputs.h>
|
5 | 5 |
|
6 | 6 | #define DEFAULT 0
|
7 |
| -#define MAC 1 |
8 |
| -#define LOWER 2 |
9 |
| -#define RAISE 3 |
10 |
| -#define ADJUST 4 |
| 7 | +#define LOWER 1 |
| 8 | +#define RAISE 2 |
| 9 | +#define ADJUST 3 |
11 | 10 |
|
12 | 11 | #define HYPER(key) LS(LC(LA(LG(key))))
|
13 | 12 | #define MEH(key) LS(LC(LA(key)))
|
|
26 | 25 | keymap {
|
27 | 26 | compatible = "zmk,keymap";
|
28 | 27 |
|
| 28 | + // Default layer. Modeled after the original Kinesis layout with a few tweaks. |
| 29 | + // Equals above tab = ESC |
| 30 | + // Backslash below minus = Equals |
| 31 | + // Swapped up and down arrows |
29 | 32 | default_layer {
|
30 | 33 | bindings = <
|
31 |
| - &kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &tog RAISE |
32 |
| - &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH |
33 |
| - &mo LOWER &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT |
34 |
| - &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT |
35 |
| - &kp GRAVE &kp BSLH &kp LEFT &kp RIGHT &kp DOWN &kp UP &kp LBKT &kp RBKT |
36 |
| - &kp EQUAL &kp MINUS &kp LBKT &kp RBKT |
37 |
| - &kp GRAVE &kp BSPC |
38 |
| - &kp LCTRL &kp LALT &kp LGUI &kp DEL &kp RET &kp SPACE |
39 |
| - >; |
40 |
| - }; |
41 |
| - |
42 |
| - mac_layer { |
43 |
| - bindings = < |
44 |
| - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
45 |
| - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
46 |
| - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
47 |
| - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
48 |
| - &trans &trans &trans &trans &trans &trans &trans &trans |
49 |
| - &trans &trans &trans &trans |
50 |
| - &trans &trans |
51 |
| - &kp LGUI &kp LALT &kp LCTRL &trans &trans &trans |
| 34 | + &kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS |
| 35 | + &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp EQUAL |
| 36 | + < LOWER CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT |
| 37 | + &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT |
| 38 | + &kp GRAVE &kp BSLH &kp LEFT &kp RIGHT &kp DOWN &kp UP &kp LBKT &kp RBKT |
| 39 | + &kp LCTRL &kp LALT &kp RGUI &kp RCTRL |
| 40 | + &kp HOME &kp PG_UP |
| 41 | + &kp BSPC &kp DEL &kp END &kp PG_DN &kp RET &kp SPACE |
52 | 42 | >;
|
53 | 43 | };
|
54 | 44 |
|
| 45 | + // Lower layer. |
| 46 | + // - Turns number row into function keys. |
| 47 | + // - Media keys to the bottom row. |
| 48 | + // - vim style arrow keys. |
| 49 | + // - Tab navigation above the vim keys. |
| 50 | + // - Desktop navigation below the vim keys. |
| 51 | + // Momentarily toggled with LOWER (Caps Lock). |
55 | 52 | lower_layer {
|
56 | 53 | bindings = <
|
57 |
| - &kp F12 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 |
58 |
| - &sl ADJUST &none &none &none &none &none &none &kp LC(1) &kp LC(PG_UP) &kp LC(PG_DN) &kp LC(9) &none |
59 |
| - &trans &kp CAPS &none &none &none &none &kp LEFT &kp DOWN &kp UP &kp RIGHT &none &none |
60 |
| - &trans &none &none &none &none &none &kp MEH(N) &kp MEH(M) &kp LG(LC(LEFT)) &kp LG(LC(RIGHT)) &kp LG(TAB) &trans |
61 |
| - &none &kp C_PP &kp C_PREV &kp C_NEXT &kp C_VOL_DN &kp C_VOL_UP &kp C_MUTE &none |
62 |
| - &kp C_BRI_UP &kp C_BRI_DN &kp PSCRN &kp INS |
63 |
| - &kp HOME &kp PG_UP |
64 |
| - &trans &trans &kp END &kp PG_DN &trans &trans |
| 54 | + &kp F12 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 |
| 55 | + &sl ADJUST &none &none &none &none &none &none &kp LC(1) &kp LC(PG_UP) &kp LC(PG_DN) &kp LC(9) &none |
| 56 | + &trans &none &none &none &none &none &kp LEFT &kp DOWN &kp UP &kp RIGHT &none &none |
| 57 | + &trans &none &none &none &none &none &kp none &kp none &kp LG(LC(LEFT)) &kp LG(LC(RIGHT)) &kp LG(TAB) &trans |
| 58 | + &none &kp C_PP &kp C_PREV &kp C_NEXT &kp C_VOL_UP &kp C_VOL_DN &kp C_MUTE &none |
| 59 | + &kp C_BRI_UP &kp C_BRI_DN &kp PSCRN &kp INS |
| 60 | + &trans &trans |
| 61 | + &trans &trans &trans &trans &trans &trans |
65 | 62 | >; };
|
66 | 63 |
|
| 64 | + // Gaming overlay. Shifts the columns to the right by one putting wasd where your fingers naturally rest. |
| 65 | + // Also remaps some keys to the left hand for convenience. |
| 66 | + // Toggled with LOWER (Caps) + ADJUST (Tab) -> RAISE (G) |
67 | 67 | raise_layer {
|
68 | 68 | bindings = <
|
69 | 69 | &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
|
72 | 72 | &kp M &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
73 | 73 | &kp COMMA &kp DOT &trans &trans &trans &trans &trans &trans
|
74 | 74 | &trans &trans &trans &trans
|
75 |
| - &kp BSLH &trans |
76 |
| - &kp SPACE &kp LCTRL &kp LALT &trans &trans &trans |
| 75 | + &kp BSLH &trans |
| 76 | + &kp SPACE &kp LCTRL &kp LALT &trans &trans &trans |
77 | 77 | >;
|
78 | 78 | };
|
79 | 79 |
|
| 80 | + // Adjust layer. Contains system controls and overlay toggles. |
| 81 | + // Toggled with LOWER (Caps) + ADJUST (Tab) |
80 | 82 | adjust_layer {
|
81 | 83 | bindings = <
|
82 |
| - &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none |
83 |
| - &trans &out OUT_USB &out OUT_BLE &none &sys_reset &tog MAC &none &sys_reset &none &none &none &none |
84 |
| - &trans &none &none &none &none &none &none &none &none &none &none &none |
85 |
| - &none &none &bt BT_CLR &none &none &bootloader &bootloader &none &none &none &none &none |
86 |
| - &none &none &none &none &none &none &none &none |
87 |
| - &none &none &none &none |
88 |
| - &none &none |
89 |
| - &none &none &none &none &none &none |
| 84 | + &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none |
| 85 | + &trans &out OUT_USB &out OUT_BLE &none &sys_reset &none &none &sys_reset &none &none &none &none |
| 86 | + &trans &none &none &none &none &tog RAISE &none &none &none &none &none &none |
| 87 | + &none &none &bt BT_CLR &none &none &bootloader &bootloader &none &none &none &none &none |
| 88 | + &none &none &none &none &none &none &none &none |
| 89 | + &none &none &none &none |
| 90 | + &none &none |
| 91 | + &none &none &none &none &none &none |
90 | 92 | >;
|
91 | 93 | };
|
92 | 94 | };
|
|
0 commit comments