blob: 4a2daac62badafc243dada9afc55bcfdba4b0c6b (
plain) (
blame)
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
|
#define ___ &trans
#define XXX &none
#ifndef QUICK_TAP_MS
#define QUICK_TAP_MS 162
#endif
#define ZMK_HELPER_STRINGIFY(x) #x
#define MO_TOG(layer) &mo_tog layer layer // Macro to apply momentary-layer-on-hold/toggle-layer-on-tap to a specific layer
&sk { // sticky-key config
release-after-ms = <900>; // release after 0.6s
quick-release; // no double capitalization when rolling keys
};
&sl { // sticky-layer config
ignore-modifiers; // allow chording sticky mods & layers
};
< { // layer-tap config
flavor = "balanced";
tapping-term-ms = <200>;
quick-tap-ms = <QUICK_TAP_MS>;
};
// Some general behaviours that are slightly tweaked from the core
/ {
behaviours {
kp_mo_tap: behavior_kp_mo_tap {
compatible = "zmk,behavior-hold-tap";
label = "kp_mo_tap";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <175>;
quick-tap-ms = <175>;
//require-prior-idle-ms = <140>;
bindings = <&mo>, <&kp>;
};
kp_mo_hold: behavior_kp_mo_hold {
compatible = "zmk,behavior-hold-tap";
label = "kp_mo_hold";
#binding-cells = <2>;
flavor = "hold-preferred";
tapping-term-ms = <175>;
quick-tap-ms = <175>;
//require-prior-idle-ms = <140>;
bindings = <&mo>, <&kp>;
};
kp_mt: behavior_kp_mt {
compatible = "zmk,behavior-hold-tap";
label = "kp_mt";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <QUICK_TAP_MS>;
quick-tap-ms = <QUICK_TAP_MS>;
//require-prior-idle-ms = <100>;
bindings = <&kp>, <&kp>;
};
};
};
#include "homerow.h"
#include "unicode.h"
|