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
|
// Copyright 2024 jack (@waffle87)
// SPDX-License-Identifier: MIT
< {
tapping-term-ms = <100>;
};
\ {
behaviors {
hm: homerow_mods {
compatible = "zmk,behavior-hold-tap";
label = "HOMEROW_MODS";
#binding-cells = <2>;
tapping-term-ms = <130>;
quick-tap-ms = <160>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
pnp: play_next_prev {
compatible = "zmk,behavior-tap-dance";
label = "PLAY_NEXT_PREV";
#binding-cells = <0>;
tapping-term-ms = <210>;
bindings = <&kp C_PLAY>, <&kp C_NEXT>, <&kp C_PREV>;
};
TAP_DANCE(bsls_pipe, &kp BSLH, &kp PIPE)
TAP_DANCE(quot_dquo, &kp SQT, &kp DQT)
TAP_DANCE(cbrkt, &kp LBRC, &kp RBRC)
TAP_DANCE(brkt, &kp LBKT, &kp RBKT)
TAP_DANCE(min_dash, &kp MINUS, &emdash)
};
macros {
updir: updir {
label = "UP_DIR";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <¯o_tap &kp DOT &kp DOT &kp FSLH>;
};
emdash: emdash {
label = "EM_DASH";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <¯o_press &kp LSHFT &kp LCTRL>,
<¯o_tap &kp U &kp N2 &kp N0 &kp N1 &kp N4>,
<¯o_release &kp LSHFT &kp LCTRL>;
};
};
}
|