-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaps-combos.dtsi
44 lines (43 loc) · 1.24 KB
/
caps-combos.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
// vi: ft=c
#define JJ_CAPS_COMBO(name,cclet,ccpos) \
name { \
timeout-ms = <50>; \
key-positions = <31 ccpos>; \
bindings = <&kp LS(cclet)>; \
layers = <0>; \
};
/ {
combos {
compatible = "zmk,combos";
// Colemak
JJ_CAPS_COMBO(cc0, Q, 0)
JJ_CAPS_COMBO(cc1, W, 1)
JJ_CAPS_COMBO(cc2, F, 2)
JJ_CAPS_COMBO(cc3, P, 3)
JJ_CAPS_COMBO(cc4, G, 4)
JJ_CAPS_COMBO(cc5, J, 5)
JJ_CAPS_COMBO(cc6, L, 6)
JJ_CAPS_COMBO(cc7, U, 7)
JJ_CAPS_COMBO(cc8, Y, 8)
JJ_CAPS_COMBO(cc10, A, 10)
JJ_CAPS_COMBO(cc11, R, 11)
JJ_CAPS_COMBO(cc12, S, 12)
JJ_CAPS_COMBO(cc13, T, 13)
JJ_CAPS_COMBO(cc14, D, 14)
JJ_CAPS_COMBO(cc15, H, 15)
JJ_CAPS_COMBO(cc16, N, 16)
JJ_CAPS_COMBO(cc17, E, 17)
JJ_CAPS_COMBO(cc18, I, 18)
JJ_CAPS_COMBO(cc19, O, 19)
JJ_CAPS_COMBO(cc20, Z, 20)
JJ_CAPS_COMBO(cc21, X, 21)
JJ_CAPS_COMBO(cc22, C, 22)
JJ_CAPS_COMBO(cc23, V, 23)
JJ_CAPS_COMBO(cc24, B, 24)
JJ_CAPS_COMBO(cc25, K, 25)
JJ_CAPS_COMBO(cc26, M, 26)
JJ_CAPS_COMBO(cc27, COMMA, 27)
JJ_CAPS_COMBO(cc28, DOT, 28)
JJ_CAPS_COMBO(cc29, FSLH, 29)
};
};