diff options
-rw-r--r-- | config/cradio.keymap | 93 |
1 files changed, 15 insertions, 78 deletions
diff --git a/config/cradio.keymap b/config/cradio.keymap index 5abcd99..e2d2cd5 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap | |||
@@ -8,6 +8,11 @@ | |||
8 | #include <dt-bindings/zmk/keys.h> | 8 | #include <dt-bindings/zmk/keys.h> |
9 | #include <dt-bindings/zmk/bt.h> | 9 | #include <dt-bindings/zmk/bt.h> |
10 | 10 | ||
11 | #define COLEMAK 0 | ||
12 | #define NAV 1 | ||
13 | #define NUM 2 | ||
14 | #define SYM 3 | ||
15 | |||
11 | 16 | ||
12 | &mt { | 17 | &mt { |
13 | // flavor = "tap-preferred"; | 18 | // flavor = "tap-preferred"; |
@@ -18,85 +23,17 @@ | |||
18 | 23 | ||
19 | combos { | 24 | combos { |
20 | compatible = "zmk,combos"; | 25 | compatible = "zmk,combos"; |
21 | combo_esc { | ||
22 | timeout-ms = <50>; | ||
23 | key-positions = <0 1>; | ||
24 | bindings = <&kp ESC>; | ||
25 | }; | ||
26 | |||
27 | combo_tab { | ||
28 | timeout-ms = <50>; | ||
29 | key-positions = <10 11>; | ||
30 | bindings = <&kp TAB>; | ||
31 | }; | ||
32 | |||
33 | combo_ralt { | ||
34 | timeout-ms = <50>; | ||
35 | key-positions = <17 16>; | ||
36 | bindings = <&kp RALT>; | ||
37 | }; | ||
38 | |||
39 | combo_lalt { | ||
40 | timeout-ms = <50>; | ||
41 | key-positions = <11 12>; | ||
42 | bindings = <&kp LALT>; | ||
43 | }; | ||
44 | |||
45 | combo_lgui { | ||
46 | timeout-ms = <50>; | ||
47 | key-positions = <12 13>; | ||
48 | bindings = <&kp LGUI>; | ||
49 | }; | ||
50 | |||
51 | |||
52 | combo_rgui { | ||
53 | timeout-ms = <50>; | ||
54 | key-positions = <17 18>; | ||
55 | bindings = <&kp RGUI>; | ||
56 | }; | ||
57 | |||
58 | |||
59 | |||
60 | }; | 26 | }; |
61 | 27 | ||
62 | keymap { | 28 | keymap { |
63 | compatible = "zmk,keymap"; | 29 | compatible = "zmk,keymap"; |
64 | 30 | default_layer { | |
65 | default_layer { | 31 | bindings = < |
66 | bindings = < | 32 | &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SCLN |
67 | &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SCLN | 33 | &kp A &kp R &kp S &kp T &kp D &kp H &kp N &kp E &kp I &kp O |
68 | &kp A &kp R &kp S &kp T &kp D &kp H &kp N &kp E &kp I &kp O | 34 | &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &kp CMMA &kp DOT &kp FSLH |
69 | &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &kp CMMA &kp DOT &kp FSLH | 35 | &kp TAB &kp SPC &kp RET &kp BSPC |
70 | &kp TAB &kp SPC &kp RET &kp BSPC | ||
71 | >; | 36 | >; |
72 | }; | 37 | }; |
73 | 38 | }; | |
74 | left_layer { | ||
75 | bindings = < | ||
76 | &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 | ||
77 | &kp TAB &kp LC(S) &kp DQT &kp PIPE2 &kp HASH &kp MINUS &kp EQL &kp LBKT &kp RBKT &kp DEL | ||
78 | &kp ESC &kp TILDE &kp NON_US_BSLH &kp NON_US_HASH &kp TILDE2 &kp MINUS &kp GRAVE &kp LBKT &kp RBKT &kp DEL | ||
79 | &mo 1 &kp LGUI &kp RGUI &mo 2 | ||
80 | >; | ||
81 | }; | ||
82 | |||
83 | right_layer { | ||
84 | bindings = < | ||
85 | &kp BANG &kp ATSN &kp HASH &kp DLLR &kp PRCT &kp CRRT &kp AMPS &kp KMLT &kp LPRN &kp RPRN | ||
86 | &kp HASH &kp QMARK &kp FSLH &kp COLN &kp SCLN &kp MINUS &kp KP_EQUAL &kp LBRC &kp RBRC &kp BKSP | ||
87 | &kp LSFT &kp KPLS &kp LBKT &kp RBKT &kp BSLH &kp UNDER &kp LEFT &kp DOWN &kp UP &kp RIGHT | ||
88 | &mo 3 &kp LCTL &kp SPC &mo 2 | ||
89 | >; | ||
90 | }; | ||
91 | |||
92 | tri_layer { | ||
93 | bindings = < | ||
94 | &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &trans &trans &trans &trans &trans | ||
95 | &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &trans &kp PG_UP &kp K_VOL_UP &kp K_MUTE &trans | ||
96 | &bt BT_CLR &bt BT_NXT &bt BT_PRV &kp F6 &kp F7 &trans &kp PG_DN &kp K_VOL_DN &trans &trans | ||
97 | &trans &trans &trans &trans | ||
98 | >; | ||
99 | }; | ||
100 | |||
101 | }; | ||
102 | }; | 39 | }; |