-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
566 lines (542 loc) · 13.5 KB
/
config.yaml
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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
units:
c: 14 # Cherry MX switch cutout/hole length in mm
s: 16 # Cherry MX switches are 15.6mm at their widest
u: U # "U" was previously 19.05mm, but is now 19mm
points:
zones.matrix:
anchor:
shift: [121.525, -196.2]
mirror:
ref: matrix_five_number
distance: 6u
key.tags.left: true
key.mirror.tags:
left: $unset
right: true
columns:
zero:
rows:
meta: # LCTRL
bind: [0, u/4, 0, u/4]
shift: [-u/4, 0]
spread: 1.5u
width: 1.5u
column_net: P7
row_net: P10
mirror.skip: true
bottom:
bind: [0, u/4, 0, u/4]
spread: 1.5u
width: 1.5u
column_net: P7
row_net: P16
mirror.skip: true
home:
bind: [0, u/4, 0, u/4]
spread: 1.5u
width: 1.5u
column_net: P7
row_net: P14
mirror.skip: true
top:
bind: [0, u/4, 0, u/4]
spread: 1.5u
width: 1.5u
column_net: P7
row_net: P15
mirror.skip: true
number:
shift: [u/4, 0]
column_net: P7
row_net: P18
mirror.skip: true
one:
rows:
meta: # CODE / Super
column_net: P8
row_net: P10
mirror.skip: true
bottom:
column_net: P8
row_net: P16
mirror:
column_net: P16
row_net: P8
home:
column_net: P8
row_net: P14
mirror:
column_net: P16
row_net: P7
top:
column_net: P8
row_net: P15
mirror:
column_net: P16
row_net: P6
number:
column_net: P8
row_net: P18
mirror:
column_net: P16
row_net: P5
two:
key.stagger: 3
rows:
meta: # LALT
mirror.skip: true
column_net: P9
row_net: P10
bottom:
bind: 1
column_net: P9
row_net: P16
mirror:
column_net: P10
row_net: P8
home:
column_net: P9
row_net: P14
mirror:
column_net: P10
row_net: P7
top:
column_net: P9
row_net: P15
mirror:
column_net: P10
row_net: P6
number:
column_net: P9
row_net: P18
mirror:
column_net: P10
row_net: P5
three:
key.stagger: 3
rows:
meta.skip: true
bottom: # C
bind: 0
column_net: P21
row_net: P16
mirror:
column_net: P2
row_net: P8
home:
column_net: P21
row_net: P14
mirror:
column_net: P2
row_net: P7
top:
column_net: P21
row_net: P15
mirror:
column_net: P2
row_net: P6
number:
column_net: P21
row_net: P18
mirror:
column_net: P2
row_net: P5
four:
key.stagger: -3
rows:
meta.skip: true
bottom: # V
bind: 0
column_net: P20
row_net: P16
mirror:
column_net: P3
row_net: P8
home:
column_net: P20
row_net: P14
mirror:
column_net: P3
row_net: P7
top:
column_net: P20
row_net: P15
mirror:
column_net: P3
row_net: P6
number:
column_net: P20
row_net: P18
mirror:
column_net: P3
row_net: P5
five:
key.stagger: -3
rows:
meta.skip: true
bottom: # B
bind: 0
column_net: P19
row_net: P16
mirror:
column_net: P4
row_net: P8
home:
column_net: P19
row_net: P14
mirror:
column_net: P4
row_net: P7
top:
column_net: P19
row_net: P15
mirror:
column_net: P4
row_net: P6
number:
column_net: P19
row_net: P18
mirror:
column_net: P4
row_net: P5
rows:
meta:
bottom:
home:
top:
number:
zones.extra:
key.tags.right: true
anchor:
ref: matrix_five_bottom
shift: [11u, 0]
columns:
minus:
rows:
bottom: # Blank (alternative backspace)
column_net: P14
row_net: P8
home: # Double quotation mark
column_net: P14
row_net: P7
top: # Opening square bracket
column_net: P14
row_net: P6
number: # Minus key
column_net: P14
row_net: P5
plus:
rows:
bottom: # Shift
bind: [0, u/4, 0, u/4]
shift: [u/4, 0]
width: 1.5u
column_net: P15
row_net: P8
home: # Enter
bind: [0, u/4, 0, u/4]
width: 1.5u
column_net: P15
row_net: P7
top: # Closing square bracket
bind: 0
shift: [-u/4, 0]
column_net: P15
row_net: P6
number: # Plus
column_net: P15
row_net: P5
backspace:
rows:
bottom.skip: true
home.skip: true
top: # Backslash
bind: [0, u/4, 0, u/4]
shift: [u/4, 0]
width: 1.5u
column_net: P18
row_net: P6
number: # Backspace
bind: [0, u/4, 0, u/4]
width: 1.5u
column_net: P18
row_net: P5
rows:
bottom:
home:
top:
number:
zones.thumbcluster:
anchor:
ref: matrix_five_bottom
shift: [1.54 +0.25796, -1u -5]
key.tags.left: true
key.mirror.tags:
left: $unset
right: true
mirror:
ref: mirror_matrix_five_bottom
distance: -6u
columns:
four.rows.meta: # Space
bind: [0, u/4, 0, u/4]
shift: [0, 0]
splay: -15
spread: 1.5u
width: 1.5u
column_net: P20
row_net: P10
mirror:
column_net: P3
row_net: P9
five.rows.meta: # Mod
bind: [0, 1/4u, 0, 1/4u]
shift: [1.15, -2.5]
splay: -10
spread: 1.5u
width: 1.5u
column_net: P19
row_net: P10
mirror:
column_net: P4
row_net: P9
outlines:
bindingleft:
- what: rectangle
where: left
size: u
bound: true
bindingright:
- what: rectangle
where: right
size: u
bound: true
cutoutsleft:
- what: rectangle
where: left
size: c
cutoutsright:
- what: rectangle
where: right
size: c
switchesleft:
- what: rectangle
where: left
fillet: 1
size: s
switchesright:
- what: rectangle
where: right
fillet: 1
size: s
wallsouterleft:
- what: polygon
points:
- ref: matrix_zero_number
shift: [-12 - u/2, 20]
- ref: matrix_five_number
shift: [48.725, 20]
- ref: matrix_five_bottom
shift: [48.725, -32.85]
- ref: matrix_five_bottom
shift: [39.62512545, -52.3647436]
- ref: matrix_zero_meta
shift: [-12 - u/4, -13.8]
wallsinnerleft:
- what: polygon
points:
- ref: matrix_zero_number
shift: [-12 - u/2 + 5, 20 - 5]
- ref: matrix_five_number
shift: [48.725 - 5, 20 - 5]
- ref: matrix_five_bottom
shift: [48.725 - 5 - 0.000001, -32.85 + 1.108483]
- ref: matrix_five_bottom
shift: [39.62512545 -2.9931263, -52.3647436 + 5.4122395]
- ref: matrix_zero_meta
shift: [-12 - u/4 + 5, -13.8 + 4.4149]
wallsouterright:
- what: polygon
points:
- ref: mirror_matrix_five_number
shift: [48.725, 20]
- ref: extra_backspace_number
shift: [12 + u/4, 20]
- ref: extra_backspace_top
shift: [12 + u/4, -30.1]
- ref: extra_minus_bottom
shift: [12 + u/2, -13.8 - 1u]
- ref: mirror_matrix_five_bottom
shift: [39.62512545, -52.3647436]
- ref: mirror_matrix_five_bottom
shift: [48.725, -32.85]
wallsinnerright:
- what: polygon
points:
- ref: mirror_matrix_five_number
shift: [48.725 - 5, 20 - 5]
- ref: extra_backspace_number
shift: [12 + u/4 - 5, 20 - 5]
- ref: extra_backspace_top
shift: [12 + u/4 - 5, -30.1 + 1.96981]
- ref: extra_minus_bottom
shift: [12 + u/2 - 2.419169, -13.8 - 1u + 4.736922]
- ref: mirror_matrix_five_bottom
shift: [39.62512545 -2.9931263, -52.3647436 + 5.4122395]
- ref: mirror_matrix_five_bottom
shift: [48.725 - 5 - 0.000001, -32.85 + 1.108483]
left:
- name: wallsouterleft
- name: wallsinnerleft
operation: stack
- name: switchesleft
operation: stack
- name: cutoutsleft
operation: stack
right:
- name: wallsouterright
- name: wallsinnerright
operation: stack
- name: switchesright
operation: stack
- name: cutoutsright
operation: stack
full:
- name: left
- name: right
operation: stack
# Example:
# https://github.com/MrCarney/mrkeyboard/blob/main/mrkeyboard.yaml
pcbs:
left:
outlines:
wallsinnerleft.outline: wallsinnerleft
keycaps:
outline: switchesleft
layer: Eco1.User
binding:
outline: bindingleft
layer: Eco2.User
footprints:
# Any MX switch
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/mx.js
mx:
what: mx
where: left
params:
hotswap: true
from: "{{column_net}}"
to: "{{colrow}}"
# Nexperia CFP3 (SOD-123W) SMD diode
diode:
what: sod-123w
where: left
adjust:
shift: [0, -5]
params:
from: "{{colrow}}"
to: "{{row_net}}"
# Arduino Pro Micro atmega32u4au
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/promicro.js
promicro:
what: promicro
where:
ref: matrix_five_number
rotate: -90
shift: [1u +1, 0.65]
params:
orientation: "down"
# Reset button
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/button.js
reset:
what: button
where:
ref: matrix_five_top
rotate: -90
shift: [1u +1, -5]
params:
from: GND
to: RST
side: "B"
# TRRS-PJ-320A-dual audio cable port
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/trrs.js
# https://keeb.io/products/trrs-jack-3-5mm
trrs:
what: trrs
where:
ref: matrix_five_number
shift: [1u +15.6 + 5, 17.95]
params:
A: GND # 1
B: GND # 2
C: VCC # 3
D: P0 # 4
reverse: true
# Symmetric only works for the "Serial" pinout
symmetric: true
right:
outlines:
wallsinnerright.outline: wallsinnerright
keycaps:
outline: switchesright
layer: Eco1.User
binding:
outline: bindingright
layer: Eco2.User
footprints:
# Any MX switch
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/mx.js
mx:
what: mx
where: right
params:
hotswap: true
from: "{{column_net}}"
to: "{{colrow}}"
# Nexperia CFP3 (SOD-123W) SMD diode
diode:
what: sod-123w
where: right
adjust:
shift: [0, -5]
params:
from: "{{colrow}}"
to: "{{row_net}}"
# Arduino Pro Micro atmega32u4au
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/promicro.js
promicro:
what: promicro
where:
ref: mirror_matrix_five_number
rotate: 90
shift: [1u +1, 0.65]
params:
orientation: "down"
# Reset button
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/button.js
reset:
what: button
where:
ref: mirror_matrix_five_top
rotate: 90
shift: [1u +1, -5]
params:
from: GND
to: RST
side: "B"
# TRRS-PJ-320A-dual audio cable port
# https://github.com/ergogen/ergogen/blob/develop/src/footprints/trrs.js
# https://keeb.io/products/trrs-jack-3-5mm
trrs:
what: trrs
where:
ref: mirror_matrix_five_number
shift: [1u + 11 + 5, 17.95]
params:
A: GND # 1
B: GND # 2
C: VCC # 3
D: P0 # 4
reverse: true
# Symmetric only works for the "Serial" pinout
symmetric: true