-
Notifications
You must be signed in to change notification settings - Fork 0
/
cradio.keymap
147 lines (131 loc) · 6.26 KB
/
cradio.keymap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
// LAYERS
#define _BSE 0
#define _NNM 1
#define _MED 2
#define _SYS 3
#define _GM1 4
#define _GM2 5
&mt {
flavor = "tap-preferred";
tapping-term-ms = <200>;
quick-tap-ms = <200>;
};
< {
flavor = "tap-preferred";
tapping-term-ms = <200>;
quick-tap-ms = <200>;
};
&sl {
release-after-ms = <1000>;
};
&sk {
release-after-ms = <500>;
quick-release;
};
/ {
behaviors {
hmt: hold_preferred_mod_tap {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <200>;
quick-tap-ms = <0>;
flavor = "hold-preferred";
bindings = <&kp>, <&kp>;
};
hlt: hold_preferred_layer_tap {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <200>;
quick-tap-ms = <0>;
flavor = "hold-preferred";
bindings = <&mo>, <&kp>;
};
};
macros {
#include "macros.dtsi"
};
combos {
compatible = "zmk,combos";
combo_system {
timeout-ms = <100>;
key-positions = <0 20>;
bindings = <&tog _SYS>;
layers = <0 _SYS>;
};
combo_boot {
timeout-ms = <100>;
key-positions = <0 4>;
bindings = <&bootloader>;
layers = <0>;
};
#include "combos.dtsi"
};
keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp W &kp L &kp Y &kp P &kp B &kp Z &kp F &kp O &kp U &kp SQT
&mt LSHIFT C &mt LALT R &mt LGUI S &mt LCTRL T &kp G &kp M &mt RCTRL N &mt RGUI E &mt RALT I &mt RSHIFT A
&kp Q &kp J &kp V &mt LSHIFT D &kp K &kp X &kp H &kp SEMI &kp COMMA &kp DOT
&hlt _NNM TAB < _MED SPC &hmt LSHIFT BSPC &none
>;
};
nnm_layer {
bindings = <
&kp GRAVE &kp ESC &kp UP &kp ENTER &kp DEL &kp BSLH &kp N7 &kp N8 &kp N9 &kp FSLH
&mt LSHIFT BSPC &mt LALT LEFT &mt LGUI DOWN &mt LCTRL RIGHT &kp LBKT &kp EQUAL &mt RCTRL N4 &mt RGUI N5 &mt RALT N6 &mt RSHIFT N0
&kp HOME &kp PG_UP &kp PG_DN &mt LSHIFT END &kp RBKT &kp MINUS &kp N1 &kp N2 &kp N3 &kp DOT
&trans &trans &trans &trans
>;
};
media_layer {
bindings = <
&kp LG(Z) &kp LG(X) &kp LG(C) &kp LG(V) &kp PSCRN &none &kp F7 &kp F8 &kp F9 &kp F11
&kp LC(Z) &kp LC(X) &kp LC(C) &kp LC(V) &kp C_VOL_DN &none &mt RCTRL F4 &mt RGUI F5 &mt RALT F6 &mt LSHIFT F10
&kp C_MUTE &mt LALT C_PREV &mt LGUI C_PP &mt LCTRL C_NEXT &kp C_VOL_UP &none &kp F1 &kp F2 &kp F3 &kp F12
&trans &trans &trans &trans
>;
};
system_layer {
bindings = <
&none &bt BT_PRV &bt BT_CLR &bt BT_NXT &out OUT_BLE &none &none &none &none &none
&bootloader &bt BT_SEL 3 &bt BT_SEL 4 &none &out OUT_TOG &none &none &none &none &none
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &out OUT_USB &none &none &none &none &none
&trans &trans &trans &trans
>;
};
gaming_layer_1 {
bindings = <
&kp TAB &kp Q &kp W &kp E &kp R &kp Y &kp U &kp I &kp O &kp P
&kp LSHIFT &kp A &kp S &kp D &kp F &kp H &kp J &kp K &kp L &kp UP
&kp LCTRL &kp Z &kp X &kp C &kp V &kp N &kp M &kp LEFT &kp RIGHT &kp DOWN
&mo _GM2 &kp SPC &kp G &kp B
>;
};
gaming_layer_2 {
bindings = <
&kp ESC &kp N7 &kp N8 &kp N9 &to _BSE &none &none &none &none &none
&kp N0 &kp N4 &kp N5 &kp N6 &kp RET &none &none &none &none &none
&kp T &kp N1 &kp N2 &kp N3 &kp BSPC &none &none &none &none &none
&none &none &none &none
>;
};
empty {
bindings = <
&none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none
&none &none &none &none
>;
};
};
};