|
| 1 | +#include <dt-bindings/zmk/stp.h> |
1 | 2 | #include <behaviors.dtsi> |
2 | | -#include <dt-bindings/zmk/keys.h> |
| 3 | +#include <dt-bindings/zmk/backlight.h> |
3 | 4 | #include <dt-bindings/zmk/bt.h> |
| 5 | +#include <dt-bindings/zmk/keys.h> |
4 | 6 | #include <dt-bindings/zmk/rgb.h> |
5 | | -#include <dt-bindings/zmk/stp.h> |
6 | | -#include <dt-bindings/zmk/backlight.h> |
7 | | -#include <dt-bindings/zmk/pointing.h> |
8 | 7 |
|
9 | 8 | / { |
10 | 9 | behaviors { |
11 | | - #include "macros.dtsi" |
| 10 | + #include "macros.dtsi" |
12 | 11 | #include "version.dtsi" |
13 | 12 |
|
14 | | - hm: homerow_mods { |
15 | | - compatible = "zmk,behavior-hold-tap"; |
16 | | - label = "HOMEROW_MODS"; |
17 | | - #binding-cells = <2>; |
18 | | - tapping-term-ms = <200>; |
19 | | - quick_tap_ms = <175>; |
20 | | - flavor = "tap-preferred"; |
21 | | - bindings = <&kp>, <&kp>; |
22 | | - }; |
23 | | - }; |
| 13 | + hm: homerow_mods { |
| 14 | + compatible = "zmk,behavior-hold-tap"; |
| 15 | + label = "HOMEROW_MODS"; |
| 16 | + #binding-cells = <2>; |
| 17 | + tapping-term-ms = <175>; |
| 18 | + quick_tap_ms = <150>; |
| 19 | + flavor = "tap-preferred"; |
| 20 | + bindings = <&kp>, <&kp>; |
| 21 | + }; |
24 | 22 |
|
25 | | - keymap { |
26 | | - compatible = "zmk,keymap"; |
| 23 | + okl: outer_key_layer { |
| 24 | + compatible = "zmk,behavior-hold-tap"; |
| 25 | + label = "OUTER_KEY_LAYER"; |
| 26 | + bindings = <&mo>, <&kp>; |
27 | 27 |
|
28 | | - default_layer { |
29 | | - display-name = "Base"; |
30 | | - bindings = < |
31 | | - &kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &tog 1 &mo 3 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS |
32 | | - &kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp U &kp I &kp O &kp P &kp BSLH |
33 | | - &kp ESC &kp A &kp S &kp D &kp F &kp G &none &kp LCTRL &kp LALT &kp LGUI &kp RCTRL &none &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 HOME &kp PG_UP &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT |
35 | | - &mo 2 &kp GRAVE &kp CAPS &kp LEFT &kp RIGHT &kp BSPC &kp DEL &kp END &kp PG_DN &kp ENTER &kp SPACE &kp UP &kp DOWN &kp LBKT &kp RBKT &mo 2 |
36 | | - >; |
37 | | - }; |
38 | | - keypad { |
39 | | - display-name = "Kp"; |
40 | | - bindings = < |
41 | | - &kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &trans &mo 3 &kp N6 &kp KP_NUM &kp KP_EQUAL &kp KP_DIVIDE &kp KP_MULTIPLY &kp MINUS |
42 | | - &kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_MINUS &kp BSLH |
43 | | - &kp ESC &kp A &kp S &kp D &kp F &kp G &none &kp LCTRL &kp LALT &kp LGUI &kp RCTRL &none &kp H &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_PLUS &kp SQT |
44 | | - &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp HOME &kp PG_UP &kp N &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_ENTER &kp RSHFT |
45 | | - &mo 2 &kp GRAVE &kp CAPS &kp LEFT &kp RIGHT &kp BSPC &kp DEL &kp END &kp PG_DN &kp ENTER &kp KP_N0 &kp UP &kp DOWN &kp KP_DOT &kp RBKT &mo 2 |
46 | | - >; |
47 | | - }; |
48 | | - fn { |
49 | | - display-name = "Fn"; |
50 | | - bindings = < |
51 | | - &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &tog 1 &mo 3 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 |
52 | | - &trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans |
53 | | - &trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans |
54 | | - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
55 | | - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
56 | | - >; |
57 | | - }; |
58 | | - mod { |
59 | | - display-name = "Mod"; |
60 | | - bindings = < |
61 | | - &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none |
62 | | - &none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none |
63 | | - &studio_unlock &none &none &none &none &none &none &none &none &bt BT_CLR &none &stp STP_BAT &none &none &none &none &none &none |
64 | | - &none &none &none &none ¯o_ver &none &none &none &none &none &none &none &none &none |
65 | | - &none &none &none &none &none &none &none &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_INC &bl BL_DEC &none &none &none |
66 | | - >; |
67 | | - }; |
68 | | - extra1 { |
69 | | - display-name = "Red"; |
70 | | - status = "reserved"; |
| 28 | + #binding-cells = <2>; |
| 29 | + tapping-term-ms = <175>; |
| 30 | + flavor = "balanced"; |
| 31 | + quick-tap-ms = <150>; |
| 32 | + }; |
71 | 33 | }; |
72 | 34 |
|
73 | | - extra2 { |
74 | | - display-name = "Purple"; |
75 | | - status = "reserved"; |
76 | | - }; |
| 35 | + keymap { |
| 36 | + compatible = "zmk,keymap"; |
77 | 37 |
|
78 | | - extra3 { |
79 | | - display-name = "Cyan"; |
80 | | - status = "reserved"; |
81 | | - }; |
| 38 | + default_layer { |
| 39 | + display-name = "Base"; |
| 40 | + bindings = < |
| 41 | +&kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &tog 3 &mo 3 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS |
| 42 | +&kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp U &kp I &kp O &kp P &kp BSLH |
| 43 | +&okl 1 ESC &hm LCTRL A &hm LALT S &hm LCMD D &hm LSHFT F &okl 2 G &mo 1 &kp LCMD &kp LALT &kp RCTRL &hm RCMD ESCAPE &mo 1 &okl 2 H &hm RSHFT J &hm RCMD K &hm RALT L &hm RCTRL SEMI &okl 1 SQT |
| 44 | +&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp HOME &kp PG_UP &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT |
| 45 | +&mo 2 &kp GRAVE &kp CAPS &kp LEFT &kp RIGHT &kp SPACE &kp BACKSPACE &kp END &okl 2 PG_DN &kp ENTER &kp SPACE &kp UP &kp DOWN &kp LBKT &kp RBKT &mo 2 |
| 46 | + >; |
| 47 | + }; |
| 48 | + |
| 49 | + keypad { |
| 50 | + display-name = "Kp"; |
| 51 | + bindings = < |
| 52 | +&trans &kp C_PLAY_PAUSE &kp F10 &kp F11 &kp F12 &trans &trans &trans &trans &kp KP_NUM &kp KP_EQUAL &kp KP_DIVIDE &kp KP_MULTIPLY &trans |
| 53 | +&trans &kp C_VOLUME_UP &kp F7 &kp F8 &kp F9 &trans &trans &trans &trans &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_MINUS &trans |
| 54 | +&trans &kp C_VOL_DN &kp F4 &kp F5 &kp F6 &trans &trans &trans &trans &trans &trans &trans &trans &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_PLUS &trans |
| 55 | +&trans &kp K_MUTE &kp F1 &kp F2 &kp F3 &trans &trans &trans &trans &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_ENTER &trans |
| 56 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp KP_N0 &trans &trans &kp KP_DOT &trans &trans |
| 57 | + >; |
| 58 | + }; |
| 59 | + |
| 60 | + fn { |
| 61 | + display-name = "Fn"; |
| 62 | + bindings = < |
| 63 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 64 | +&kp EXCL &kp LBRC &kp LS(SQT) &kp DQT &kp RBRC &kp QMARK &trans &trans &kp SEMI &kp LBKT &kp RBKT &kp LEFT_PARENTHESIS &kp RPAR &trans |
| 65 | +&kp HASH &kp CARET &kp EQUAL &kp MINUS &kp DLLR &kp STAR &trans &kp TILDE &trans &trans &trans &trans &kp DOT &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans |
| 66 | +&kp AT &kp LT &kp PIPE &kp MINUS &kp GT &kp FSLH &trans &trans &kp STAR &kp BSLH &kp AMPS &kp GRAVE &kp TILDE &trans |
| 67 | +&trans &trans &trans &trans &trans &kp PRCNT &kp COLON &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 68 | + >; |
| 69 | + }; |
| 70 | + |
| 71 | + mod { |
| 72 | + display-name = "Mod"; |
| 73 | + bindings = < |
| 74 | +&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none |
| 75 | +&none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none |
| 76 | +&studio_unlock &none &none &none &none &none &none &none &none &bt BT_CLR &none &stp STP_BAT &none &none &none &none &none &none |
| 77 | +&none &none &none &none ¯o_ver &none &none &none &none &none &none &none &none &none |
| 78 | +&none &none &none &none &none &none &none &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_INC &bl BL_DEC &none &none &none |
| 79 | + >; |
| 80 | + }; |
| 81 | + |
| 82 | + extra1 { |
| 83 | + display-name = "Red"; |
| 84 | + status = "reserved"; |
| 85 | + }; |
| 86 | + |
| 87 | + extra2 { |
| 88 | + display-name = "Purple"; |
| 89 | + status = "reserved"; |
| 90 | + }; |
| 91 | + |
| 92 | + extra3 { |
| 93 | + display-name = "Cyan"; |
| 94 | + status = "reserved"; |
| 95 | + }; |
82 | 96 |
|
83 | | - extra4 { |
84 | | - display-name = "Yellow"; |
85 | | - status = "reserved"; |
| 97 | + extra4 { |
| 98 | + display-name = "Yellow"; |
| 99 | + status = "reserved"; |
| 100 | + }; |
86 | 101 | }; |
87 | | - }; |
88 | 102 | }; |
0 commit comments