-
Notifications
You must be signed in to change notification settings - Fork 118
/
keymap.zmk
11069 lines (10879 loc) · 430 KB
/
keymap.zmk
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
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (c) 2020 The ZMK Contributors
* Copyright (c) 2023 Innaworks Development Limited, trading as MoErgo
*
* SPDX-License-Identifier: MIT
*/
/* THIS FILE WAS GENERATED BY GLOVE80 LAYOUT EDITOR
*
* This file was generated automatically. You may or may not want to
* edit it directly.
*/
#include <behaviors.dtsi>
/* Include all behavior includes needed */
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
/* Automatically generated layer name #define */
#define LAYER_Enthium 0
#define LAYER_Engrammer 1
#define LAYER_Engram 2
#define LAYER_Dvorak 3
#define LAYER_Colemak 4
#define LAYER_QWERTY 5
#define LAYER_ColemakDH 6
#define LAYER_Canary 7
#define LAYER_Sturdy 8
#define LAYER_Graphite 9
#define LAYER_Gallium 10
#define LAYER_Typing 11
#define LAYER_LeftPinky 12
#define LAYER_LeftRingy 13
#define LAYER_LeftMiddy 14
#define LAYER_LeftIndex 15
#define LAYER_RightPinky 16
#define LAYER_RightRingy 17
#define LAYER_RightMiddy 18
#define LAYER_RightIndex 19
#define LAYER_Cursor 20
#define LAYER_Number 21
#define LAYER_Function 22
#define LAYER_Emoji 23
#define LAYER_Symbol 24
#define LAYER_Mouse 25
#define LAYER_System 26
#define LAYER_World 27
#define LAYER_Gaming 28
#define LAYER_Factory 29
#define LAYER_Lower 30
#define LAYER_Magic 31
/* To deal with the situation where there is no Lower layer, to keep &lower happy */
#ifndef LAYER_Lower
#define LAYER_Lower 0
#endif
/* Custom Device-tree */
//////////////////////////////////////////////////////////////////////////
//
// Mouse keys (keyboard mouse control) requires v24.12 firmware or newer:
// override the "HID_POINTING" setting to "y" in Advanced Configuration
// and then select "v24.12" firmware from the drop-down menu located at
// Glove80 Layout Editor > Settings > Advanced Settings > Firmware Version
//
// Alternatively, you can still use the older PR23 beta firmware for this:
// select "community.pr23.mouse-keys" from the drop-down menu located at
// Glove80 Layout Editor > Settings > Advanced Settings > Firmware Version
//
// - https://github.com/moergo-sc/zmk/pull/23
// - https://gist.github.com/krissen/dd27082e7ab0575619c7a31f4d2ec7ae
// - https://github.com/zmkfirmware/zmk/compare/main...urob:zmk:mouse-3.2
//
//////////////////////////////////////////////////////////////////////////
//
// MOUSE_MOTION_DELAY defines how long to wait (milliseconds) before starting
// to move the mouse pointer.
//
#ifndef MOUSE_MOTION_DELAY
#define MOUSE_MOTION_DELAY 0
#endif
//
// MOUSE_MOTION_ACCELERATION_EXPONENT sets how the mouse pointer accelerates:
//
// acceleration exponent 0: uniform speed
// acceleration exponent 1: uniform acceleration
// acceleration exponent 2: uniform jerk
//
#ifndef MOUSE_MOTION_ACCELERATION_EXPONENT
#define MOUSE_MOTION_ACCELERATION_EXPONENT 1
#endif
//
// MOUSE_MOTION_TIME_TO_MAXIMUM_SPEED defines how long to wait (milliseconds)
// before the mouse pointer speed is suddenly boosted to the maximum value.
//
#ifndef MOUSE_MOTION_TIME_TO_MAXIMUM_SPEED
#define MOUSE_MOTION_TIME_TO_MAXIMUM_SPEED 300
#endif
//
// MOUSE_MOTION_MAXIMUM_SPEED defines how quickly the mouse pointer can move.
//
#ifndef MOUSE_MOTION_MAXIMUM_SPEED
#define MOUSE_MOTION_MAXIMUM_SPEED 600
#endif
//
// MOUSE_SCROLL_DELAY defines how long to wait (milliseconds) before starting
// to move the mouse pointer.
//
#ifndef MOUSE_SCROLL_DELAY
#define MOUSE_SCROLL_DELAY 0
#endif
//
// MOUSE_SCROLL_ACCELERATION_EXPONENT sets how the mouse pointer accelerates:
//
// acceleration exponent 0: uniform speed
// acceleration exponent 1: uniform acceleration
// acceleration exponent 2: uniform jerk
//
#ifndef MOUSE_SCROLL_ACCELERATION_EXPONENT
#define MOUSE_SCROLL_ACCELERATION_EXPONENT 0
#endif
//
// MOUSE_SCROLL_TIME_TO_MAXIMUM_SPEED defines how long to wait (milliseconds)
// before the mouse pointer speed is suddenly boosted to the maximum value.
//
#ifndef MOUSE_SCROLL_TIME_TO_MAXIMUM_SPEED
#define MOUSE_SCROLL_TIME_TO_MAXIMUM_SPEED 300
#endif
//
// MOUSE_SCROLL_MAXIMUM_SPEED defines how quickly the mouse wheel can scroll.
//
#ifndef MOUSE_SCROLL_MAXIMUM_SPEED
#define MOUSE_SCROLL_MAXIMUM_SPEED 10
#endif
#if __has_include(<zmk/events/mouse_tick.h>) || ( \
defined(MOERGO_FIRMWARE_VERSION_MAJOR) && \
defined(MOERGO_FIRMWARE_VERSION_MINOR) && ( \
MOERGO_FIRMWARE_VERSION_MAJOR == 24 && \
MOERGO_FIRMWARE_VERSION_MINOR == 12 || \
MOERGO_FIRMWARE_VERSION_MAJOR > 24 \
) \
)
// ==== MOUSE-KEY <section begins> ====
#define ZMK_MOUSE_DEFAULT_MOVE_VAL MOUSE_MOTION_MAXIMUM_SPEED
#define ZMK_MOUSE_DEFAULT_SCRL_VAL MOUSE_SCROLL_MAXIMUM_SPEED
#include <dt-bindings/zmk/mouse.h>
&mmv {
delay-ms = <MOUSE_MOTION_DELAY>;
acceleration-exponent = <MOUSE_MOTION_ACCELERATION_EXPONENT>;
time-to-max-speed-ms = <MOUSE_MOTION_TIME_TO_MAXIMUM_SPEED>;
};
&msc {
delay-ms = <MOUSE_SCROLL_DELAY>;
acceleration-exponent = <MOUSE_SCROLL_ACCELERATION_EXPONENT>;
time-to-max-speed-ms = <MOUSE_SCROLL_TIME_TO_MAXIMUM_SPEED>;
};
// ==== MOUSE-KEY <section ends> =====
#else
#define mkp none
#define mmv none
#define msc none
#define LCLK
#define MCLK
#define RCLK
#define MB1
#define MB2
#define MB3
#define MB4
#define MB5
#define MB6
#define MB7
#define MB8
#define MOVE_UP
#define MOVE_DOWN
#define MOVE_LEFT
#define MOVE_RIGHT
#define SCRL_UP
#define SCRL_DOWN
#define SCRL_LEFT
#define SCRL_RIGHT
#endif
//////////////////////////////////////////////////////////////////////////
//
// Per-key RGB indicators for layers & mods -- requires PR30 beta firmware:
// override "EXPERIMENTAL_RGB_LAYER" to "y" in Advanced Configuration and
// select "community.pr30.per-key-rgb" from the drop-down menu located at
// Glove80 Layout Editor > Settings > Advanced Settings > Firmware Version
//
//////////////////////////////////////////////////////////////////////////
#if __has_include(<dt-bindings/zmk/rgb_colors.h>)
// ==== PER-KEY-RGB <section begins> ====
#include <dt-bindings/zmk/rgb_colors.h>
/ {
underglow-layer {
compatible = "zmk,underglow-layer";
//
// color definitions from QMK
// https://github.com/qmk/qmk_firmware/blob/master/quantum/color.h
//
#define AZURE 0x99F5FF // #99F5FF
#define BLACK 0x000000 // #000000
#define BLUE 0x0000FF // #0000FF
#define CHARTRSE 0x80FF00 // #80FF00
#define CORAL 0xFF7C4D // #FF7C4D
#define CYAN 0x00FFFF // #00FFFF
#define GOLD 0xFFD900 // #FFD900
#define GOLDNROD 0xD9A521 // #D9A521
#define GREEN 0x00FF00 // #00FF00
#define MAGENTA 0xFF00FF // #FF00FF
#define ORANGE 0xFF8000 // #FF8000
#define PINK 0xFF80BF // #FF80BF
#define PURPLE 0x7A00FF // #7A00FF
#define RED 0xFF0000 // #FF0000
#define SPRINGRN 0x00FF80 // #00FF80
#define TEAL 0x008080 // #008080
#define TURQUOIS 0x476E6A // #476E6A
#define WHITE 0xFFFFFF // #FFFFFF
#define YELLOW 0xFFFF00 // #FFFF00
#define ________ BLACK // #000000
//
// color definitions from MoErgo
// https://github.com/moergo-sc/zmk/blob/aca523dfce9b6447ffd19d833b791d44f1f286de/app/src/rgb_underglow.c#L259-L265
//
#define DULL_GRN 0x00ff68 // #00ff68
#define LILAC 0x6b1fce // #6b1fce
/*
Template {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
>;
layer-id = <LAYER_Template>;
};
*/
BaseLayer {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <0>;
};
#ifdef LAYER_LeftPinky
LeftPinky {
bindings = <
________ MAGENTA ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_LeftPinky>;
};
#endif
#ifdef LAYER_LeftRingy
LeftRingy {
bindings = <
________ ________ CYAN ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_LeftRingy>;
};
#endif
#ifdef LAYER_LeftMiddy
LeftMiddy {
bindings = <
________ ________ ________ GREEN ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_LeftMiddy>;
};
#endif
#ifdef LAYER_LeftIndex
LeftIndex {
bindings = <
________ ________ ________ ________ YELLOW ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_LeftIndex>;
};
#endif
#ifdef LAYER_RightIndex
RightIndex {
bindings = <
________ ________ ________ ________ ________ YELLOW ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_RightIndex>;
};
#endif
#ifdef LAYER_RightMiddy
RightMiddy {
bindings = <
________ ________ ________ ________ ________ ________ GREEN ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_RightMiddy>;
};
#endif
#ifdef LAYER_RightRingy
RightRingy {
bindings = <
________ ________ ________ ________ ________ ________ ________ CYAN ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_RightRingy>;
};
#endif
#ifdef LAYER_RightPinky
RightPinky {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ MAGENTA ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ MAGENTA CYAN GREEN YELLOW ________ ________ YELLOW GREEN CYAN MAGENTA ________
________ ________ ________ ________ ________ ________ LILAC CORAL BLUE BLUE CORAL LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC ________ ________ LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_RightPinky>;
};
#endif
#ifdef LAYER_Emoji
Emoji {
bindings = <
________ ________ ________ LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ RED ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ DULL_GRN ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
>;
layer-id = <LAYER_Emoji>;
};
#endif
#ifdef LAYER_Function
Function {
bindings = <
________ ________ ________ ________ LILAC ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ DULL_GRN ________ RED ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
>;
layer-id = <LAYER_Function>;
};
#endif
#ifdef LAYER_Cursor
Cursor {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ CYAN CYAN CYAN CYAN ________
________ ________ ________ ________ ________ ________ ________ ________ RED ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ DULL_GRN ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
>;
layer-id = <LAYER_Cursor>;
};
#endif
#ifdef LAYER_Number
Number {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ RED ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ DULL_GRN ________ ________ ________ ________ ________ ________ ________ ________ ________
>;
layer-id = <LAYER_Number>;
};
#endif
#ifdef LAYER_Mouse
Mouse {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ LILAC ________ ________ ________ ________ ________
________ ________ ________ CYAN ________ ________ MAGENTA ________ ________ ________ ________ ________
________ GREEN CYAN CYAN CYAN ________ YELLOW ________ ________ ________ ________ ________
________ GREEN ________ ________ ________ ________ MAGENTA ________ ________ RED ________ ________ ORANGE ________ ________ ________ ________ ________
________ ________ ________ ________ ________ YELLOW ORANGE ________ ________ DULL_GRN ________ ________ ________ ________ ________ ________
>;
layer-id = <LAYER_Mouse>;
};
#endif
#ifdef LAYER_Symbol
Symbol {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ LILAC ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ RED ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ DULL_GRN ________ ________ ________ ________ ________
>;
layer-id = <LAYER_Symbol>;
};
#endif
#ifdef LAYER_System
System {
bindings = <
________ ________ ________ ________ ________ LILAC ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ RED ________ DULL_GRN ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
>;
layer-id = <LAYER_System>;
};
#endif
#ifdef LAYER_World
World {
bindings = <
________ ________ ________ ________ ________ ________ LILAC ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ RED ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ DULL_GRN ________ ________ ________ ________
>;
layer-id = <LAYER_World>;
};
#endif
#ifdef LAYER_Typing
Typing {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ DULL_GRN RED RED DULL_GRN ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC ________ ________ ________ ________ ________ ________ LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_Typing>;
};
#endif
#ifdef LAYER_Gaming
Gaming {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ CYAN ________ ________ ________ ________ ________ ________ ________ ________
________ ________ CYAN CYAN CYAN ________ ________ ________ RED ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ RED ________ ________ ________ ________ ________ ________ ________ ________
>;
layer-id = <LAYER_Gaming>;
};
#endif
#ifdef LAYER_Lower
Lower {
bindings = <
________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________ ________
________ ________ ________ ________ ________ ________ LILAC GOLD RED RED GOLD LILAC ________ ________ ________ ________ ________ ________
________ ________ ________ ________ LILAC LILAC LILAC CYAN CYAN LILAC LILAC LILAC ________ ________ ________ ________
>;
layer-id = <LAYER_Lower>;
};
#endif
};
};
// ==== PER-KEY-RGB <section ends> =====
#endif
/* Glove80 system behavior & macros */
/ {
behaviors {
// For the "layer" key, it'd nice to be able to use it as either a shift or a toggle.
// Configure it as a tap dance, so the first tap (or hold) is a &mo and the second tap is a &to
lower: lower {
compatible = "zmk,behavior-tap-dance";
label = "LAYER_TAP_DANCE";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&mo LAYER_Lower>, <&to LAYER_Lower>;
};
};
};
/ {
macros {
rgb_ug_status_macro: rgb_ug_status_macro {
label = "RGB_UG_STATUS";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&rgb_ug RGB_STATUS>;
};
};
};
/ {
#ifdef BT_DISC_CMD
behaviors {
bt_0: bt_0 {
compatible = "zmk,behavior-tap-dance";
label = "BT_0";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&bt_select_0>, <&bt BT_DISC 0>;
};
bt_1: bt_1 {
compatible = "zmk,behavior-tap-dance";
label = "BT_1";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&bt_select_1>, <&bt BT_DISC 1>;
};
bt_2: bt_2 {
compatible = "zmk,behavior-tap-dance";
label = "BT_2";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&bt_select_2>, <&bt BT_DISC 2>;
};
bt_3: bt_3 {
compatible = "zmk,behavior-tap-dance";
label = "BT_3";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&bt_select_3>, <&bt BT_DISC 3>;
};
};
macros {
bt_select_0: bt_select_0 {
label = "BT_SELECT_0";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&out OUT_BLE>,
<&bt BT_SEL 0>;
};
bt_select_1: bt_select_1 {
label = "BT_SELECT_1";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&out OUT_BLE>,
<&bt BT_SEL 1>;
};
bt_select_2: bt_select_2 {
label = "BT_SELECT_2";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&out OUT_BLE>,
<&bt BT_SEL 2>;
};
bt_select_3: bt_select_3 {
label = "BT_SELECT_3";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&out OUT_BLE>,
<&bt BT_SEL 3>;
};
};
#else
macros {
bt_0: bt_0 {
label = "BT_0";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&out OUT_BLE>,
<&bt BT_SEL 0>;
};
bt_1: bt_1 {
label = "BT_1";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&out OUT_BLE>,
<&bt BT_SEL 1>;
};
bt_2: bt_2 {
label = "BT_2";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&out OUT_BLE>,
<&bt BT_SEL 2>;
};
bt_3: bt_3 {
label = "BT_3";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&out OUT_BLE>,
<&bt BT_SEL 3>;
};
};
#endif
};
/ {
behaviors {
magic: magic {
compatible = "zmk,behavior-hold-tap";
label = "MAGIC_HOLD_TAP";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <200>;
bindings = <&mo>, <&rgb_ug_status_macro>;
};
};
};
/* #define for key positions */
#define POS_LH_T1 52
#define POS_LH_T2 53
#define POS_LH_T3 54
#define POS_LH_T4 69
#define POS_LH_T5 70
#define POS_LH_T6 71
#define POS_LH_C1R2 15
#define POS_LH_C1R3 27
#define POS_LH_C1R4 39
#define POS_LH_C1R5 51
#define POS_LH_C2R1 4
#define POS_LH_C2R2 14
#define POS_LH_C2R3 26
#define POS_LH_C2R4 38
#define POS_LH_C2R5 50
#define POS_LH_C2R6 68
#define POS_LH_C3R1 3
#define POS_LH_C3R2 13
#define POS_LH_C3R3 25
#define POS_LH_C3R4 37
#define POS_LH_C3R5 49
#define POS_LH_C3R6 67
#define POS_LH_C4R1 2
#define POS_LH_C4R2 12
#define POS_LH_C4R3 24
#define POS_LH_C4R4 36
#define POS_LH_C4R5 48
#define POS_LH_C4R6 66
#define POS_LH_C5R1 1
#define POS_LH_C5R2 11
#define POS_LH_C5R3 23
#define POS_LH_C5R4 35
#define POS_LH_C5R5 47
#define POS_LH_C5R6 65
#define POS_LH_C6R1 0
#define POS_LH_C6R2 10
#define POS_LH_C6R3 22
#define POS_LH_C6R4 34
#define POS_LH_C6R5 46
#define POS_LH_C6R6 64
#define POS_RH_T1 57
#define POS_RH_T2 56
#define POS_RH_T3 55
#define POS_RH_T4 74
#define POS_RH_T5 73
#define POS_RH_T6 72
#define POS_RH_C1R2 16
#define POS_RH_C1R3 28
#define POS_RH_C1R4 40
#define POS_RH_C1R5 58
#define POS_RH_C2R1 5
#define POS_RH_C2R2 17
#define POS_RH_C2R3 29
#define POS_RH_C2R4 41
#define POS_RH_C2R5 59
#define POS_RH_C2R6 75
#define POS_RH_C3R1 6
#define POS_RH_C3R2 18
#define POS_RH_C3R3 30
#define POS_RH_C3R4 42
#define POS_RH_C3R5 60
#define POS_RH_C3R6 76
#define POS_RH_C4R1 7
#define POS_RH_C4R2 19
#define POS_RH_C4R3 31
#define POS_RH_C4R4 43
#define POS_RH_C4R5 61
#define POS_RH_C4R6 77
#define POS_RH_C5R1 8
#define POS_RH_C5R2 20
#define POS_RH_C5R3 32
#define POS_RH_C5R4 44
#define POS_RH_C5R5 62
#define POS_RH_C5R6 78
#define POS_RH_C6R1 9
#define POS_RH_C6R2 21
#define POS_RH_C6R3 33
#define POS_RH_C6R4 45
#define POS_RH_C6R5 63
#define POS_RH_C6R6 79
/* Custom Defined Behaviors */
/ {
// NOTE: Use the many #define settings below to customize this keymap!
#define OPERATING_SYSTEM 'L' // choose 'L'inux, 'M'acOS, or 'W'indows
#define DIFFICULTY_LEVEL 0 // 0:custom, 1:easy -> 5:hard (see below)
#define ENFORCE_BILATERAL // cancels single-handed home row mod+tap
#define SPACE_FORGIVENESS // allow lingering taps on the space bar
//#define THUMB_FORGIVENESS // allow lingering taps on the thumb keys
//#define SHIFT_FORGIVENESS // requires 24.08-beta1 or newer firmware
#define WORLD_USE_COMPOSE // use native Compose in place of Unicode
//#define WORLD_HOST_AZERTY // host computer is set to AZERTY locale
//#define WORLD_SHIFT_NUMBER // apply Shift to type number row digits
// TIP: Add more setting overrides here instead of editing them below.
//////////////////////////////////////////////////////////////////////////////
//
// Sunaku's Keymap v40 -- "Glorious Engrammer"
// - https://github.com/sunaku/glove80-keymaps
//
//////////////////////////////////////////////////////////////////////////////
//
// OPERATING_SYSTEM defines which operating system you intend to use
// with this keymap, because shortcuts vary across operating systems.
//
// - https://zmk.dev/docs/codes
// - https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts
//
// This setting also affects the UNICODE() function defined below, as
// each OS has different shortcuts for typing Unicode hex characters.
//
// NOTE: You may need to enable Unicode hexadecimal input in your OS:
// - (macOS) https://uknowit.uwgb.edu/page.php?id=22623
// and https://github.com/ldanet/unicode-hex-input-fix
// - (Linux) https://help.ubuntu.com/stable/ubuntu-help/tips-specialchars.html.en#ctrlshiftu
// - (Windows) https://github.com/samhocevar/wincompose
//
// Specifically, Windows users should be running the WinCompose tool,
// which lets you type Unicode characters via hexadecimal codepoints.
//
#ifndef OPERATING_SYSTEM
#define OPERATING_SYSTEM 'L' // linux
//#define OPERATING_SYSTEM 'M' // macos
//#define OPERATING_SYSTEM 'W' // windows
#endif
#if OPERATING_SYSTEM == 'M'
#define _C LG
#define _A_TAB LGUI
#define _G_TAB LALT
#define _REDO _C(LS(Z))
#define _POWER K_POWER
#define _W LA
#define _HOME _C(LEFT)
#define _END _C(RIGHT)
#define _EMOJI LG(LC(SPACE))
#else
#define _C LC
#define _A_TAB LALT
#define _G_TAB LGUI
#define _REDO _C(Y)
#define _POWER C_POWER
#define _W _C
#define _HOME HOME
#define _END END
#define _EMOJI LG(DOT)
#endif
#define _SLEEP C_SLEEP
#if OPERATING_SYSTEM == 'W'
#define _LOCK LG(L)
#elif OPERATING_SYSTEM == 'M'
#define _LOCK _C(LC(Q))
#elif OPERATING_SYSTEM == 'L'
#define _LOCK K_LOCK
#endif
#define _UNDO _C(Z)
#define _CUT _C(X)
#define _COPY _C(C)
#define _PASTE _C(V)
#define _FIND _C(F)
#define _FIND_NEXT _C(G)
#define _FIND_PREV _C(LS(G))
//
// USE_NUMPAD_KEYCODES puts `KP_*` keycodes into the Number layer.
//
#ifdef USE_NUMPAD_KEYCODES
#define _KP_N0 KP_N0
#define _KP_N1 KP_N1
#define _KP_N2 KP_N2
#define _KP_N3 KP_N3
#define _KP_N4 KP_N4
#define _KP_N5 KP_N5
#define _KP_N6 KP_N6
#define _KP_N7 KP_N7
#define _KP_N8 KP_N8
#define _KP_N9 KP_N9
#define _KP_PLUS KP_PLUS
#define _KP_MINUS KP_MINUS
#define _KP_ASTERISK KP_ASTERISK
#define _KP_SLASH KP_SLASH
#define _KP_COMMA KP_COMMA
#define _KP_DOT KP_DOT
#define _KP_EQUAL KP_EQUAL
#define _KP_ENTER KP_ENTER
#else
#define _KP_N0 N0
#define _KP_N1 N1
#define _KP_N2 N2
#define _KP_N3 N3
#define _KP_N4 N4
#define _KP_N5 N5
#define _KP_N6 N6
#define _KP_N7 N7
#define _KP_N8 N8
#define _KP_N9 N9
#define _KP_PLUS PLUS
#define _KP_MINUS MINUS
#define _KP_ASTERISK ASTERISK
#define _KP_SLASH SLASH
#define _KP_COMMA COMMA
#define _KP_DOT DOT
#define _KP_EQUAL EQUAL
#define _KP_ENTER ENTER
#endif
//
// Keymap specific knowledge of the base layer's alpha + ZMK layout
//
#if defined(LAYER_Enthium) && LAYER_Enthium == 0
#define KEY_LH_C6R1 HOME
#define KEY_LH_C5R1 END
#define KEY_LH_C4R1 A
#define KEY_LH_C3R1 B
#define KEY_LH_C2R1 C
#define KEY_RH_C2R1 D
#define KEY_RH_C3R1 E
#define KEY_RH_C4R1 F
#define KEY_RH_C5R1 LEFT
#define KEY_RH_C6R1 RIGHT
#define KEY_LH_C6R2 PG_UP
#define KEY_LH_C5R2 N1
#define KEY_LH_C4R2 N2
#define KEY_LH_C3R2 N3
#define KEY_LH_C2R2 N4
#define KEY_LH_C1R2 N5
#define KEY_RH_C1R2 N6
#define KEY_RH_C2R2 N7
#define KEY_RH_C3R2 N8
#define KEY_RH_C4R2 N9
#define KEY_RH_C5R2 N0
#define KEY_RH_C6R2 UP
#define KEY_LH_C6R3 PG_DN
#define KEY_LH_C5R3 B
#define KEY_LH_C4R3 Y
#define KEY_LH_C3R3 O
#define KEY_LH_C2R3 U
#define KEY_LH_C1R3 SEMI
#define KEY_RH_C1R3 X
#define KEY_RH_C2R3 L
#define KEY_RH_C3R3 D
#define KEY_RH_C4R3 W
#define KEY_RH_C5R3 V
#define KEY_RH_C6R3 DOWN
#define KEY_LH_C6R4 Z
#define KEY_LH_C5R4 C
#define KEY_LH_C4R4 I
#define KEY_LH_C3R4 E
#define KEY_LH_C2R4 A
#define KEY_LH_C1R4 COMMA
#define KEY_RH_C1R4 K
#define KEY_RH_C2R4 H
#define KEY_RH_C3R4 T
#define KEY_RH_C4R4 N
#define KEY_RH_C5R4 S
#define KEY_RH_C6R4 Q
#define KEY_LH_C6R5 LSFT
#define KEY_LH_C5R5 SQT
#define KEY_LH_C4R5 MINUS
#define KEY_LH_C3R5 EQUAL
#define KEY_LH_C2R5 DOT
#define KEY_LH_C1R5 FSLH
#define KEY_LH_T1 ESC
#define KEY_LH_T2 LSFT
#define KEY_LH_T3 0
#define KEY_RH_T3 0
#define KEY_RH_T2 RSFT
#define KEY_RH_T1 ENTER
#define KEY_RH_C1R5 J
#define KEY_RH_C2R5 M
#define KEY_RH_C3R5 G
#define KEY_RH_C4R5 P
#define KEY_RH_C5R5 F
#define KEY_RH_C6R5 RSFT
#define KEY_LH_C6R6 0
#define KEY_LH_C5R6 GRAVE
#define KEY_LH_C4R6 LBKT
#define KEY_LH_C3R6 RBKT
#define KEY_LH_C2R6 BSLH
#define KEY_LH_T4 BACKSPACE
#define KEY_LH_T5 DELETE
#define KEY_LH_T6 0
#define KEY_RH_T6 0
#define KEY_RH_T5 TAB
#define KEY_RH_T4 SPACE
#define KEY_RH_C2R6 R
#define KEY_RH_C3R6 LPAR
#define KEY_RH_C4R6 RPAR
#define KEY_RH_C5R6 INS
#define KEY_RH_C6R6 0
#endif
#if defined(LAYER_Engrammer) && LAYER_Engrammer == 0
#define KEY_LH_C6R1 UP
#define KEY_LH_C5R1 DOWN
#define KEY_LH_C4R1 A
#define KEY_LH_C3R1 B
#define KEY_LH_C2R1 C
#define KEY_RH_C2R1 D
#define KEY_RH_C3R1 E
#define KEY_RH_C4R1 F
#define KEY_RH_C5R1 LEFT
#define KEY_RH_C6R1 RIGHT
#define KEY_LH_C6R2 EQUAL
#define KEY_LH_C5R2 N1
#define KEY_LH_C4R2 N2
#define KEY_LH_C3R2 N3
#define KEY_LH_C2R2 N4
#define KEY_LH_C1R2 N5
#define KEY_RH_C1R2 N6
#define KEY_RH_C2R2 N7
#define KEY_RH_C3R2 N8
#define KEY_RH_C4R2 N9