|
| 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 | | - }; |
| 13 | + hm: homerow_mods { |
| 14 | + compatible = "zmk,behavior-hold-tap"; |
| 15 | + label = "HOMEROW_MODS"; |
| 16 | + #binding-cells = <2>; |
| 17 | + tapping-term-ms = <200>; |
| 18 | + quick_tap_ms = <175>; |
| 19 | + flavor = "tap-preferred"; |
| 20 | + bindings = <&kp>, <&kp>; |
| 21 | + }; |
23 | 22 | }; |
24 | 23 |
|
25 | | - keymap { |
26 | | - compatible = "zmk,keymap"; |
| 24 | + macros { |
| 25 | + macro_macos: macro_macos { |
| 26 | + compatible = "zmk,behavior-macro"; |
| 27 | + #binding-cells = <0>; |
| 28 | + bindings = <&bt BT_SEL 0 &to 4>; |
| 29 | + label = "MACRO_MACOS"; |
| 30 | + }; |
27 | 31 |
|
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"; |
| 32 | + macro_work: macro_work { |
| 33 | + compatible = "zmk,behavior-macro"; |
| 34 | + #binding-cells = <0>; |
| 35 | + bindings = <&bt BT_SEL 1 &to 0>; |
| 36 | + label = "MACRO_WORK"; |
| 37 | + }; |
71 | 38 | }; |
72 | 39 |
|
73 | | - extra2 { |
74 | | - display-name = "Purple"; |
75 | | - status = "reserved"; |
76 | | - }; |
| 40 | + keymap { |
| 41 | + compatible = "zmk,keymap"; |
77 | 42 |
|
78 | | - extra3 { |
79 | | - display-name = "Cyan"; |
80 | | - status = "reserved"; |
81 | | - }; |
| 43 | + default_layer { |
| 44 | + display-name = "Base"; |
| 45 | + bindings = < |
| 46 | +&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 |
| 47 | +&none &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp U &kp I &kp O &kp P &kp BSLH |
| 48 | +&kp CAPS &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 |
| 49 | +&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp TAB &kp PG_UP &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT |
| 50 | +&mo 2 &none &kp CAPS &kp LEFT &kp RIGHT &kp BSPC &kp DEL &kp ESC &kp PG_DN &kp ENTER &kp SPACE &kp UP &kp DOWN &kp LBKT &kp RBKT &mo 2 |
| 51 | + >; |
| 52 | + }; |
| 53 | + |
| 54 | + keypad { |
| 55 | + display-name = "Kp"; |
| 56 | + bindings = < |
| 57 | +&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 |
| 58 | +&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 |
| 59 | +&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 |
| 60 | +&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 |
| 61 | +&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 |
| 62 | + >; |
| 63 | + }; |
| 64 | + |
| 65 | + fn { |
| 66 | + display-name = "Fn"; |
| 67 | + bindings = < |
| 68 | +&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 |
| 69 | +&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans |
| 70 | +&trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans |
| 71 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 72 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 73 | + >; |
| 74 | + }; |
| 75 | + |
| 76 | + mod { |
| 77 | + display-name = "Mod"; |
| 78 | + bindings = < |
| 79 | +&none ¯o_macos ¯o_work &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none |
| 80 | +&none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none |
| 81 | +&studio_unlock &none &none &none &none &none &none &none &none &bt BT_CLR &none &none &none &none &none &none &none &none |
| 82 | +&none &none &none &none &none &none &none &none &none &none &none &none &none &none |
| 83 | +&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 |
| 84 | + >; |
| 85 | + }; |
82 | 86 |
|
83 | | - extra4 { |
84 | | - display-name = "Yellow"; |
85 | | - status = "reserved"; |
| 87 | + macOS { |
| 88 | + bindings = < |
| 89 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 90 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 91 | +&trans &trans &trans &trans &trans &trans &trans &kp LEFT_COMMAND &kp LEFT_ALT &kp LEFT_CONTROL &kp RIGHT_COMMAND &trans &trans &trans &trans &trans &trans &trans |
| 92 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 93 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 94 | + >; |
| 95 | + }; |
86 | 96 | }; |
87 | | - }; |
88 | 97 | }; |
0 commit comments