-
Notifications
You must be signed in to change notification settings - Fork 2
/
zmk_template.dtsi
67 lines (59 loc) · 1.49 KB
/
zmk_template.dtsi
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
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
/ {
behaviors {
// Customized mod_tap and layer_tap:
// - mod_tap is 'tap preferred' as it's used on home-row
// - layer_tap uses balanced flavor
mt_: custom_mod_tap {
compatible = "zmk,behavior-hold-tap";
label = "MOD_TAP";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <200>;
bindings = <&kp>, <&kp>;
};
lt_: custom_layer_tap {
compatible = "zmk,behavior-hold-tap";
label = "LAYER_TAP";
#binding-cells = <2>;
flavor = "balanced";
tapping-term-ms = <200>;
bindings = <&mo>, <&kp>;
};
};
keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
#LAYER_0#
>;
};
lower_layer {
bindings = <
#LAYER_1#
>;
};
raise_layer {
bindings = <
#LAYER_2#
>;
};
hyper_layer {
bindings = <
#LAYER_3#
>;
};
adjust_layer {
bindings = <
#LAYER_4#
>;
};
mouse_layer {
bindings = <
#LAYER_5#
>;
};
};
};