|
1 | | - |
2 | | -/* |
3 | | - * Copyright (c) 2020 The ZMK Contributors |
4 | | - * |
5 | | - * SPDX-License-Identifier: MIT |
6 | | - */ |
7 | | - |
8 | | - |
9 | | -/* THIS FILE WAS GENERATED! |
10 | | - * |
11 | | - * This file was generated automatically. You may or may not want to |
12 | | - * edit it directly. |
13 | | - */ |
14 | | - |
| 1 | +#include <dt-bindings/zmk/stp.h> |
15 | 2 | #include <behaviors.dtsi> |
16 | | -#include <dt-bindings/zmk/keys.h> |
| 3 | +#include <dt-bindings/zmk/backlight.h> |
17 | 4 | #include <dt-bindings/zmk/bt.h> |
| 5 | +#include <dt-bindings/zmk/keys.h> |
18 | 6 | #include <dt-bindings/zmk/rgb.h> |
19 | | -#include <dt-bindings/zmk/stp.h> |
20 | | -#include <dt-bindings/zmk/backlight.h> |
21 | | -#include <dt-bindings/zmk/pointing.h> |
22 | 7 |
|
23 | 8 | / { |
24 | | - behaviors { |
25 | | - #include "macros.dtsi" |
26 | | - #include "version.dtsi" |
| 9 | + behaviors { |
| 10 | + #include "macros.dtsi" |
| 11 | + #include "version.dtsi" |
| 12 | + #ifndef VERSION_MACRO |
| 13 | + |
| 14 | + macro_ver: macro_ver { |
| 15 | + compatible = "zmk,behavior-macro"; |
| 16 | + label = "macro_version"; |
| 17 | + #binding-cells = <0>; |
| 18 | + bindings = <&kp RET>; |
| 19 | + }; |
| 20 | + |
| 21 | + #endif |
27 | 22 |
|
28 | | - hm: homerow_mods { |
29 | | - compatible = "zmk,behavior-hold-tap"; |
30 | | - label = "HOMEROW_MODS"; |
31 | | - #binding-cells = <2>; |
32 | | - tapping-term-ms = <200>; |
33 | | - quick_tap_ms = <175>; |
34 | | - flavor = "tap-preferred"; |
35 | | - bindings = <&kp>, <&kp>; |
36 | | - }; |
| 23 | + hm: homerow_mods { |
| 24 | + compatible = "zmk,behavior-hold-tap"; |
| 25 | + label = "HOMEROW_MODS"; |
| 26 | + #binding-cells = <2>; |
| 27 | + tapping-term-ms = <200>; |
| 28 | + quick_tap_ms = <175>; |
| 29 | + flavor = "tap-preferred"; |
| 30 | + bindings = <&kp>, <&kp>; |
| 31 | + }; |
| 32 | + }; |
| 33 | + |
| 34 | + macros { |
37 | 35 | }; |
38 | 36 |
|
39 | | - keymap { |
40 | | - compatible = "zmk,keymap"; |
| 37 | + keymap { |
| 38 | + compatible = "zmk,keymap"; |
41 | 39 |
|
42 | | - default_layer { |
43 | | - display-name = "Base"; |
44 | | - bindings = < |
45 | | - &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 |
46 | | - &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp SPACE &none &kp Y &kp U &kp I &kp O &kp P &kp BACKSLASH |
47 | | - &kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp GRAVE &kp LG(SPACE) &kp DELETE ¯o_qnum &kp LG(TILDE) ¯o_hyper_work &kp H &kp J &kp K &kp L &kp SEMI &kp APOS |
48 | | - &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp EQUAL &kp HOME &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT |
49 | | - &mo 5 &kp LALT &kp LEFT &kp RIGHT &kp LEFT_COMMAND < 1 ENTER &kp BACKSPACE &kp SPACE &kp END &kp BACKSPACE < 2 SPACE &kp UP &kp DOWN &kp LBKT &kp RBKT &mo 4 |
| 40 | + default_layer { |
| 41 | + display-name = "Base"; |
| 42 | + bindings = < |
| 43 | +&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 |
| 44 | +&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp E &none &kp Y &kp U &kp I &kp O &kp P &kp BSLH |
| 45 | +&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 |
| 46 | +&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 |
| 47 | +&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 |
50 | 48 | >; |
51 | 49 | }; |
52 | | - }; |
53 | | - |
54 | | - fn { |
55 | | - display-name = "Fn"; |
56 | | - bindings = < |
57 | | - &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 |
58 | | - &trans &trans &trans &trans &trans &trans &none &none &trans &trans &kp LEFT_BRACE &kp RIGHT_BRACE &trans &trans |
59 | | - &trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &trans &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &trans &trans |
60 | | - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp LEFT_BRACKET &kp RIGHT_BRACKET &trans &trans |
61 | | - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 50 | + |
| 51 | + keypad { |
| 52 | + display-name = "Kp"; |
| 53 | + bindings = < |
| 54 | +&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 |
| 55 | +&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 |
| 56 | +&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 |
| 57 | +&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 |
| 58 | +&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 | 59 | >; |
63 | | - }; |
64 | | - mod { |
65 | | - display-name = "Mod"; |
66 | | - bindings = < |
67 | | - &trans &trans &trans &kp LA(UP) &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
68 | | - &trans &trans &kp HOME &kp UP &kp END &trans &trans &trans &trans &trans &trans &trans &trans &trans |
69 | | - &trans &kp LA(LEFT) &kp LEFT &kp DOWN &kp RIGHT &kp LA(RIGHT) &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
70 | | - &trans &trans &kp LG(LEFT_BRACKET) &kp LA(DOWN) &kp LG(RIGHT_BRACKET) &trans &trans &trans &trans &trans &trans &trans &trans &trans |
71 | | - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 60 | + }; |
| 61 | + |
| 62 | + fn { |
| 63 | + display-name = "Fn"; |
| 64 | + bindings = < |
| 65 | +&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 |
| 66 | +&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans |
| 67 | +&trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans |
| 68 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
| 69 | +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
72 | 70 | >; |
73 | | - }; |
74 | | - arrow { |
75 | | - display-name = "arrow"; |
76 | | - bindings = < |
77 | | - &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 |
78 | | - &none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none |
79 | | - &none &none &none &none &none &none &none &none &none &bt BT_CLR &none &rgb_ug RGB_MEFS_CMD 5 &none &none &none &none &none &none |
80 | | - &none &none &none &none ¯o_ver &none &none &none &none &none &none &none &none &none |
81 | | - &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 |
| 71 | + }; |
| 72 | + |
| 73 | + mod { |
| 74 | + display-name = "Mod"; |
| 75 | + bindings = < |
| 76 | +&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 |
| 77 | +&none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none |
| 78 | +&studio_unlock &none &none &none &none &none &none &none &none &bt BT_CLR &none &stp STP_BAT &none &none &none &none &none &none |
| 79 | +&none &none &none &none ¯o_ver &none &none &none &none &none &none &none &none &none |
| 80 | +&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 |
82 | 81 | >; |
83 | | - }; |
84 | | - extra1 { |
85 | | - display-name = "Red"; |
86 | | - status = "reserved"; |
87 | | - }; |
| 82 | + }; |
88 | 83 |
|
89 | | - extra2 { |
90 | | - display-name = "Purple"; |
91 | | - status = "reserved"; |
92 | | - }; |
| 84 | + extra1 { |
| 85 | + display-name = "Red"; |
| 86 | + status = "reserved"; |
| 87 | + }; |
93 | 88 |
|
94 | | - extra3 { |
95 | | - display-name = "Cyan"; |
96 | | - status = "reserved"; |
97 | | - }; |
| 89 | + extra2 { |
| 90 | + display-name = "Purple"; |
| 91 | + status = "reserved"; |
| 92 | + }; |
| 93 | + |
| 94 | + extra3 { |
| 95 | + display-name = "Cyan"; |
| 96 | + status = "reserved"; |
| 97 | + }; |
98 | 98 |
|
99 | | - extra4 { |
100 | | - display-name = "Yellow"; |
101 | | - status = "reserved"; |
| 99 | + extra4 { |
| 100 | + display-name = "Yellow"; |
| 101 | + status = "reserved"; |
| 102 | + }; |
102 | 103 | }; |
103 | | - }; |
| 104 | +}; |
0 commit comments