-
Notifications
You must be signed in to change notification settings - Fork 0
/
corny.keymap.autoshift.au
389 lines (371 loc) Β· 21.1 KB
/
corny.keymap.autoshift.au
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#define AS(keycode) &as LS(keycode) keycode // Autoshift
//#define DT(keycode) &dt keycode keycode // Double Tap
#define BCK &bck_ht LA(BACKSPACE) BACKSPACE // BackSpace
#define IT_E &it_e 0
#define COMBOMS 30
#define HOLDTAP 165 // Old Value 150
#define MACRO_WAIT_TIME 25
/ {
//MACROS
macros {
it_egrav: it_egrav {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LC(LA(LG(I)))>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp LBKT>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp LC(LA(LG(E)))>;
};
it_shift_egrav: it_shift_egrav {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LC(LA(LG(I)))>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp LS(LBKT)>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp LC(LA(LG(E)))>;
};
it_i: it_i {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LC(LA(LG(I)))>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp EQUAL>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp LC(LA(LG(E)))>;
};
it_o: it_o {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LC(LA(LG(I)))>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp SEMI>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp LC(LA(LG(E)))>;
};
it_u: it_u {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LC(LA(LG(I)))>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp BSLH>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp LC(LA(LG(E)))>;
};
it_a: it_a {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LC(LA(LG(I)))>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp SQT>,
<¯o_wait_time MACRO_WAIT_TIME>,
<&kp LC(LA(LG(E)))>;
};
efp: efp {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp F &kp P>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
elaugh: elaugh {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp L &kp A>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
eok: eok {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp O &kp K>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
ethank: ethank {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp T &kp H>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
esmile: esmile {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp S &kp M>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
esad: esad {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp S &kp A &kp D>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
elove: elove {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp L &kp V>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
ehmmm: ehmmm {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp H &kp M>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
ecoffe: ecoffe {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp UNDERSCORE &kp C &kp F>,
<¯o_wait_time MACRO_WAIT_TIME>;
};
};
//COMBOS
combos {
compatible = "zmk,combos";
//Left CMD - ST
combo_lcmd {
timeout-ms = <COMBOMS>;
key-positions = <15 16>;
bindings = <&kp LCMD>;
};
//Right CMD - NE
combo_rcmd {
timeout-ms = <COMBOMS>;
key-positions = <19 20>;
bindings = <&kp LCMD>;
};
//Left ALT - RS
combo_lalt {
timeout-ms = <COMBOMS>;
key-positions = <13 14>;
bindings = <&kp LALT>;
};
//Right ALT - EI
combo_ralt {
timeout-ms = <COMBOMS>;
key-positions = <21 22>;
bindings = <&kp LALT>;
};
//Left CTRL - AR
combo_lctrl {
timeout-ms = <COMBOMS>;
key-positions = <14 15>;
bindings = <&kp LCTRL>;
};
//Right CTRL - IO
combo_rctrl {
timeout-ms = <COMBOMS>;
key-positions = <20 21>;
bindings = <&kp LCTRL>;
};
//MEH and Hyper
// //Left MEH - RST - 13 14 15
// combo_lmeh {
// timeout-ms = <COMBOMS>;
// key-positions = <14 15 16>;
// bindings = <&kp LC(LA(LEFT_SHIFT))>;
// };
// //Right MEH - NEI - 19 20 21
// combo_rmeh {
// timeout-ms = <COMBOMS>;
// key-positions = <19 20 21>;
// bindings = <&kp RC(RA(RIGHT_SHIFT))>;
// };
// //Left Hyper - ARST - 13 14 15 16
// combo_lhyp {
// timeout-ms = <COMBOMS>;
// key-positions = <13 14 15 16>;
// bindings = <&kp LC(LA(LG(LEFT_SHIFT)))>;
// };
// //Rihgt Hyper - NEIO - 19 20 21 22
// combo_rhyp {
// timeout-ms = <COMBOMS>;
// key-positions = <19 20 21 22>;
// bindings = <&kp RC(RA(RG(RIGHT_SHIFT)))>;
// };
//Escape - WF
combo_esc {
timeout-ms = <COMBOMS>;
key-positions = <2 3>;
bindings = <&kp ESC>;
};
//DEL - FP
combo_del {
timeout-ms= <50>;
key-positions = <3 4>;
bindings = <&kp DEL>;
};
};
//Behaivors
behaviors {
// BackSpace HOLD Tap
bck_ht: bck_ht {
compatible = "zmk,behavior-hold-tap";
bindings = <&kp>, <&kp>;
#binding-cells = <2>;
tapping-term-ms = <145>;
quick-tap-ms = <0>;
require-prior-idle-ms = <140>; //initial value 140
flavor = "balanced";
};
// Hold Tap General
ht: ht {
compatible = "zmk,behavior-hold-tap";
bindings = <&kp>, <&kp>;
#binding-cells = <2>;
tapping-term-ms = <HOLDTAP>;
quick-tap-ms = <50>;
require-prior-idle-ms = <50>; //initial value 140
flavor = "balanced";
};
// IT_E Hold Tap
it_e: it_e {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <HOLDTAP>;
quick-tap-ms = <50>; // 50 I think is the sweet Spot for this settings
require-prior-idle-ms = <50>; // 50 I think this is the sweet spot for this settings
flavor = "balanced";
bindings = <&it_shift_egrav>, <&it_egrav>;
};
// Autoshift Hold Tap
as: auto_shift {
compatible = "zmk,behavior-hold-tap";
label = "ZM_autoshift";
#binding-cells = <2>;
tapping-term-ms = <170>; //prev was 140 HOLDTAP=165 at the moment
//quick-tap-ms = <50>; // 50 I think is the sweet Spot for this settings
//require-prior-idle-ms = <50>; // 50 I think this is the sweet spot for this settings
flavor = "hold-preferred"; // balanced
bindings = <&kp &kp>;
};
// Capture Screen Key TAP Dance
mk_capt: tap_dance_mod_tap {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <HOLDTAP>; //old 200
bindings = <&mt LG(LC(LS(N4))) LG(LS(N2))>, <&mt LG(LS(N5)) LG(LS(N4))>;
};
// Tap Dance Amethyst Full Screen window Mode and 2 panes
dt_ameth: dt_ameth {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <HOLDTAP>; //old 200
bindings = <&kp LA(LS(O))>, <&kp LA(LS(D))>, <&kp LA(LS(J))>;
};
// Double Tap for Layer 4 and HT CMD and Tap Enter
// tap_layer4:tap_layer4 {
// compatible = "zmk,behavior-tap-dance";
// #binding-cells = <0>;
// tapping-term-ms =<140>;
// bindings = << 2 SPACE>, <&mo 4>;
// // bindings = <&ht RCMD RET>, <&mo 4>;
// };
// Double Tap for Layer 5 Emoji and HT CMD and Tap Enter
// tap_layer5:tap_layer5 {
// compatible = "zmk,behavior-tap-dance";
// #binding-cells = <0>;
// tapping-term-ms = <140>;//old was hold tap
// bindings = <&ht RCMD RET>, <&mo 5>;
// };
};
conditional_layers {
compatible = "zmk,conditional-layers";
tri_layer {
if-layers = <1 2>;
then-layer = <3>;
};
};
keymap {
compatible = "zmk,keymap";
//Layer 0 - Default
default_layer {
// -------------------------------------------------------------------------------------------------
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | \ |
// | Bakcspace | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHFT | Z | X | C | V | B | None| | MUTE | N | M | , | . | / | SHFT |
// 4-WinMan+emoji | 1-Numbers/Space | CMD/Enter | | CMD/Enter | 2-Arrows | 3-Italian Accents |
// Vol+ Vol-
//LA(BACKSPACE) BACKSPACE AS(A)
bindings = <
AS(TAB) AS(Q) AS(W) AS(F) AS(P) AS(G) AS(J) AS(L) AS(U) AS(Y) AS(SEMI) AS(BSLH)
BCK AS(A) AS(R) AS(S) AS(T) AS(D) AS(H) AS(N) AS(E) AS(I) AS(O) AS(SQT)
&kp LSHFT AS(Z) AS(X) AS(C) AS(V) AS(B) &none &kp C_MUTE AS(K) AS(M) AS(COMMA) AS(DOT) AS(SLASH) &kp RSHFT
< 5 LG(SPACE) < 1 SPACE &ht RCMD RET &ht RCMD RET < 2 SPACE < 4 SPACE
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};
//Layer 1 Numbers____________________________________________________________________________________________________________________________________
numbers_layer {
bindings = <
&trans AS(LBKT) AS(RBKT) &kp LPAR &kp RPAR &mk_capt &trans &trans &trans &trans &trans &kp CAPS
&trans AS(N1) AS(N2) AS(N3) AS(N4) AS(N5) AS(N6) AS(N7) AS(N8) AS(N9) AS(N0) AS(EQUAL)
&trans &trans &kp LBKT &kp LC(LEFT) &kp LC(RIGHT) &dt_ameth &none &kp LC(LA(LS(Z))) &kp PLUS AS(MINUS) &trans &trans &trans AS(GRAVE)
&kp LA(LS(B)) &trans &trans &trans &trans &trans
>;
sensor-bindings = <&inc_dec_kp C_BRI_INC C_BRI_DEC>;
};
//Layer 2 Arrows Mouse __________________________________________________________________________________________________________________________________________
// --------------------------------------------------------------------------------------------------------
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | Omnifocus new Child |
// | Bakcspace | A | S | D | F | G | | H | J | K | L | ; | Omnifocus show/hide Note |
// | SHFT | Z | X | C | V | B | None| | MUTE | N | M | , | . | / | Omnifocus New Task |
// 4-WinMan+emoji | 1-Numbers/Space | CMD/Enter | | CMD/Enter | 2-Arrows | 3-Italian Accents |
// Vol+ Vol-
//LA(BACKSPACE) BACKSPACE AS(A)
arrows_layer {
bindings = <
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &trans &kp DEL &kp LA(LEFT) &kp UP &kp LA(RIGHT) &kp PG_UP &kp LG(LS(RBKT))
&trans &trans &trans &trans &trans &trans &kp LG(UP) &kp LEFT &kp DOWN &kp RIGHT &kp PG_DN &kp LG(LA(SQT))
&trans &trans &trans &trans &trans &trans &none &kp LG(A) &kp LG(DOWN) &kp LG(LEFT) &kp LBRC &kp LG(RIGHT) &kp HOME &kp LA(LC(SPACE))
&kp LGUI &trans &kp SPACE &kp RET &trans &kp LALT
>;
sensor-bindings = <&inc_dec_kp UP DOWN>;
};
//Layer 3 Bluetooth System Layer______________________________________________________________________________________________________________________________
bt_layer {
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &kp F12
&bootloader &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &none &none &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &bootloader
&kp LGUI &trans &kp SPACE &kp RET &trans &kp LALT
>;
sensor-bindings = <&inc_dec_kp LEFT RIGHT>;
};
//
//Layer 4 Italian Accents_______________________________________________________________________________________________________________________________________
it_layer {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &it_u &trans &trans &trans
&trans &it_a &trans &trans &trans &trans &trans &trans IT_E &trans &it_i &it_o &none
&ht LG(N1) F1 &ht LG(N2) F2 &ht LG(N3) F3 &ht LG(N4) F4 &ht LG(N5) F5 &ht LG(N6) F6 &none &trans &ht LG(N7) F7 &ht LG(N8) F8 &ht LG(N9) F9 &ht LG(N0) F10 &ht LG(Z) F11 &ht LG(LS(Z)) F12
&trans &trans &trans &trans &trans &trans
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};
//Layer 5 Emoji and Window Manip_________________________________________________________________________________________________________________________________
emoji_layer {
bindings = <
&trans &trans &elove &efp &ehmmm &ecoffe &trans &trans &trans &trans &trans &trans
&trans &elaugh &esmile &eok ðank &esad &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
sensor-bindings = <&inc_dec_kp LC(RIGHT) LC(LEFT)>;
};
};
};
// &ht LG(N1) F1 &ht LG(N2) F2 &ht LG(N3) F3 &ht LG(N4) F4 &ht LG(N5) F5 &ht LG(N6) F6 &none &trans &ht LG(N7) F7 &ht LG(N8) F8 &ht LG(N9) F9 &ht LG(N10) F10 &ht LG(N11) F11 &ht LG(N12) F12
// &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
// &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
// &trans &trans &trans &trans &trans &trans &none &bootloader &trans &trans &trans &trans &trans &trans
// &trans &trans &trans &trans &trans &trans
//
// _lv π₯° _hm π€ _cf βοΈ &elove &ehmmm &ecoffe π€¦ββοΈππππππ₯°π€βοΈβοΈβοΈ_βοΈcfqβοΈqq π€π₯°π₯°π€¦ββοΈπ€ππππ