forked from manna-harbour/miryoku_zmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom_config.h
164 lines (138 loc) · 10.9 KB
/
custom_config.h
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
// Copyright 2022 Manna Harbour
// https://github.com/manna-harbour/miryoku
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
//Dan's Layers
//Board=nice_nano_v2
//shield=corne_left nice_view_adapter nice_view,corne_right nice_view_adapter nice_view
//Default layout (ColemakDH)
/*
#########################
# How to edit this page #
#########################
Don't touch the first bundle of "K" keys for each layer, this sets the mapping
Move to the next block of "K's" that start with the "XXX" under the layer you want to edit.
This is your custom mapping. By replacing any "XXX" or "K##" with an appropriate ZMK keycode,
you will overwrite the Miryoku key with your intended key.
Note that the block you're editing has no commas.
ZMK keycodes can be found here: https://zmk.dev/docs/codes
and must start with an action (&kp, or &bt, etc).
Layer Lock is coming! https://github.com/ecstatic-morse/zmk/blob/molock/docs/docs/behaviors/layers.md#momentary-layer-lock
*/
#if defined (MIRYOKU_KEYBOARD_CORNE)
#define XXX &none
#define MIRYOKU_LAYERMAPPING_BASE( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 XXX \
XXX K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 XXX \
XXX K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 XXX \
K32 K33 K34 K35 K36 K37
#define MIRYOKU_LAYERMAPPING_TAP( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 XXX \
XXX K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 XXX \
XXX K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 XXX \
K32 K33 K34 K35 K36 K37
#define MIRYOKU_LAYERMAPPING_NAV( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX &kp LC(Z) &kp LC(X) &kp LC(C) &kp LC(V) &kp LC(Y) &kp LC(F) &kp RC(RS(TAB)) &kp LA(LEFT) &kp LA(RIGHT) &kp LC(TAB) XXX \
XXX K10 K11 K12 K13 &kp LC(A) K15 K16 K17 K18 K19 XXX \
XXX K20 &kp BSPC &kp ENTER K23 K24 K25 K26 K27 K28 K29 XXX \
K32 K33 K34 K35 K36 K37
#define MIRYOKU_LAYERMAPPING_MOUSE( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX &kp RC(RS(TAB)) &kp LA(LEFT) &kp LA(RIGHT) &kp LC(TAB) K04 &kp LC(Y) &kp LC(V) &kp LC(C) &kp LC(X) &kp LC(Z) XXX \
XXX K10 K11 K12 K13 K14 &kp LC(A) K16 K17 K18 K19 XXX \
XXX K20 &kp BSPC &kp ENTER K23 K24 &kp LC(LA(G)) K26 K27 K28 K29 XXX \
K32 K33 K34 K35 K36 K37
#define MIRYOKU_LAYERMAPPING_MEDIA( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX &bt BT_CLR K01 K02 K03 K04 &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 XXX \
XXX K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 XXX \
XXX K20 K21 K22 K23 K24 K25 U_NA U_NA U_NA &kp LA(LG(K)) XXX \
K32 K33 K34 K35 K36 K37
#define MIRYOKU_LAYERMAPPING_NUM( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 XXX \
XXX K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 XXX \
XXX K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 XXX \
K32 K33 K34 K35 K36 K37
#define MIRYOKU_LAYERMAPPING_SYM( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 XXX \
XXX K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 XXX \
XXX K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 XXX \
K32 K33 K34 K35 K36 K37
#define MIRYOKU_LAYERMAPPING_FUN( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 XXX \
XXX K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 XXX \
XXX K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 XXX \
K32 K33 K34 K35 K36 K37
#define MIRYOKU_LAYERMAPPING_BUTTON( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \
) \
XXX K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 XXX \
XXX K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 XXX \
XXX K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 XXX \
K32 K33 K34 K35 K36 K37
#endif
/*
Create a new file named "miryoku_zmk/conf/corne.conf" and input the following (without the slashes):
# Copyright 2022 Manna Harbour
# https://github.com/manna-harbour/miryoku
# Give your board a cool bluetooth name
CONFIG_ZMK_KEYBOARD_NAME="NothingToSeeHere"
# Uncomment for battery life enhancements
CONFIG_ZMK_IDLE_TIMEOUT=300000
# Milliseconds of inactivity before entering idle (screen off), equals 5 minutes
CONFIG_ZMK_SLEEP=y
# Enable deep sleep support
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
# Milliseconds of inactivity before entering deep sleep (disconnect everything), equals 1 hour
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
# Default is zero, has negligible impact on battery, and improves communication between splits
# Uncomment the following line to enable the OLED Display or nice!view Display
CONFIG_ZMK_DISPLAY=y
# Modify the display options
# CONFIG_ZMK_WIDGET_LAYER_STATUS=y
# CONFIG_ZMK_WIDGET_BATTERY_STATUS=y
CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y
# CONFIG_ZMK_WIDGET_OUTPUT_STATUS=y
#show the current output (USB/BLE)
# CONFIG_ZMK_WIDGET_WPM_STATUS=n
*/