blob: f24cffb7b5d420799eb048ce438860b28f0e6554 (
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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
#define COMBO_TERM_FAST 35
#define COMBO_TERM_SLOW 40
#define COMBO_PRIOR_IDLE 100
/ {
combos {
compatible = "zmk,combos";
combo_bracket_v_round_l {
timeout-ms = <COMBO_TERM_FAST>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LT1 LM1>;
layers = <BASE BASE_QWERTY SYM NUM NUM_WORD>;
bindings = <&kp LPAR>;
};
combo_bracket_v_round_r {
timeout-ms = <COMBO_TERM_FAST>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <RT1 RM1>;
layers = <BASE BASE_QWERTY SYM NUM NUM_WORD>;
bindings = <&kp RPAR>;
};
combo_bracket_v_square_l {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LT2 LM2>;
layers = <BASE BASE_QWERTY SYM NUM NUM_WORD>;
bindings = <&kp LBKT>;
};
combo_bracket_v_square_r {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <RT2 RM2>;
layers = <BASE BASE_QWERTY SYM NUM NUM_WORD>;
bindings = <&kp RBKT>;
};
combo_bracket_v_curly_l {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LT3 LM3>;
layers = <BASE BASE_QWERTY SYM NUM NUM_WORD>;
bindings = <&kp LBRC>;
};
combo_bracket_v_curly_r {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <RT3 RM3>;
layers = <BASE BASE_QWERTY SYM NUM NUM_WORD>;
bindings = <&kp RBRC>;
};
combo_bracket_v_angled_l {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LM1 LB1>;
layers = <BASE BASE_QWERTY SYM NUM NUM_WORD>;
bindings = <&kp LT>;
};
combo_bracket_v_angled_r {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <RM1 RB1>;
layers = <BASE BASE_QWERTY SYM NUM NUM_WORD>;
bindings = <&kp GT>;
};
combo_capsword {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LM1 RM1>;
layers = <BASE BASE_QWERTY>;
#ifdef HAS_CAPSLOCK
bindings = <&caps_word_capslock >;
#else
bindings = <&caps_word>;
#endif
};
combo_return {
timeout-ms = <COMBO_TERM_FAST>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LH2 LH1 LH0>;
layers = <BASE BASE_QWERTY NAV NUM SYM>;
bindings = <&kp RET>;
};
combo_bspc {
timeout-ms = <COMBO_TERM_FAST>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LH1 LH0>;
layers = <BASE BASE_QWERTY NAV NUM SYM>;
bindings = <&kp BSPC>;
};
// combo_grave {
// timeout-ms = <COMBO_TERM_SLOW>;
// require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
// key-positions = <RM3 RM4>;
// layers = <>;
// bindings = <&kp GRAVE>;
// };
// combo_md_code_block {
// timeout-ms = <COMBO_TERM_SLOW>;
// require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
// key-positions = <RM2 RM3 RM4>;
// layers = <>;
// bindings = <&m_type_md_code_block>;
// };
combo_tog_nav_word {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LM3 LM2 LM1>;
layers = <BASE BASE_QWERTY NUM NUM_WORD>;
#ifdef HAS_UROB
bindings = <&nav_word>;
#else
bindings = <&tog NAV_WORD>;
#endif
};
combo_tog_num_word {
timeout-ms = <COMBO_TERM_SLOW>;
require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LB3 LB2 LB1>;
layers = <BASE BASE_QWERTY NAV NAV_WORD>;
#ifdef HAS_UROB
bindings = <&num_word>;
#else
bindings = <&tog NUM_WORD>;
#endif
};
#ifdef HAS_MOUSE_TP
combo_tog_mouse_settings_l {
timeout-ms = <COMBO_TERM_SLOW>;
// require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LT2 LT3 LT4>;
layers = <BASE BASE_QWERTY NAV NAV_WORD MOUSE_KEYS>;
bindings = <&tog MOUSE_SET>;
};
combo_tog_mouse_settings_r {
timeout-ms = <COMBO_TERM_SLOW>;
// require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <RT2 RT3 RT4>;
layers = <BASE BASE_QWERTY NAV NAV_WORD MOUSE_KEYS>;
bindings = <&tog MOUSE_SET>;
};
#endif
#ifdef HAS_MOUSE_KEYS
combo_tog_mouse_keys_l {
timeout-ms = <COMBO_TERM_SLOW>;
// require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <LM2 LM3 LM4>;
layers = <BASE BASE_QWERTY NAV NAV_WORD MOUSE_KEYS>;
bindings = <&tog MOUSE_KEYS>;
};
combo_tog_mouse_keys_r {
timeout-ms = <COMBO_TERM_SLOW>;
// require-prior-idle-ms = <COMBO_PRIOR_IDLE>;
key-positions = <RM2 RM3 RM4>;
layers = <BASE BASE_QWERTY NAV NAV_WORD MOUSE_KEYS>;
bindings = <&tog MOUSE_KEYS>;
};
#endif
};
};
|