blob: 8ab88e969e1b677bd1e9d2a49e14752ecd6f8dc8 (
plain)
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
|
/*
Copyright 2018-2022 Eric Gebhart <e.a.gebhart@gmail.com>
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/>.
*/
#ifdef OLED_CUSTOM_ENABLE
#include "ericgebhart.h"
void oled_render_layer_map(void) {
uint8_t lyr = get_highest_layer(layer_state);
if (lyr < _LAYERS) {
switch (get_highest_layer(default_layer_state)) {
#ifdef QWERTY_LAYER_ENABLE
SHOW_MAP(_QWERTY)
#endif
#ifdef COLEMAK_DH_LAYER_ENABLE
SHOW_MAP(_COLEMAK_DH)
#endif
#ifdef COLEMAK_LAYER_ENABLE
SHOW_MAP(_COLEMAK)
#endif
#ifdef HALMAK_LAYER_ENABLE
SHOW_MAP(_HALMAK)
#endif
#ifdef MINIMAK_LAYER_ENABLE
SHOW_MAP(_MINIMAK)
#endif
#ifdef MINIMAK_8_LAYER_ENABLE
SHOW_MAP(_MINIMAK_8)
#endif
#ifdef MINIMAK_12_LAYER_ENABLE
SHOW_MAP(_MINIMAK_12)
#endif
#ifdef DVORAK_LAYER_ENABLE
SHOW_MAP(_DVORAK)
#endif
#ifdef DVORAK_RLC_IU_LAYER_ENABLE
SHOW_MAP(_DVORAK_RLC_IU)
#endif
#ifdef BOO_LAYER_ENABLE
SHOW_MAP(_BOO)
#endif
#ifdef CAPEWELL_DVORAK_LAYER_ENABLE
SHOW_MAP(_CAPEWELL_DVORAK)
#endif
#ifdef AHEI_LAYER_ENABLE
SHOW_MAP(_AHEI)
#endif
#ifdef BEAKL27_LAYER_ENABLE
SHOW_MAP(_BEAKL27)
#endif
#ifdef BEAKL15_LAYER_ENABLE
SHOW_MAP(_BEAKL15)
#endif
#ifdef BEAKL19_LAYER_ENABLE
SHOW_MAP(_BEAKL19)
#endif
#ifdef BEAKLWI_LAYER_ENABLE
SHOW_MAP(_BEAKLWI)
#endif
#ifdef CARPALX_QFMLWY_LAYER_ENABLE
SHOW_MAP(_CARPALX_QFMLWY)
#endif
#ifdef CARPALX_QGMLWB_LAYER_ENABLE
SHOW_MAP(_CARPALX_QGMLWB)
#endif
#ifdef CARPALX_QGMLWY_LAYER_ENABLE
SHOW_MAP(_CARPALX_QGMLWY)
#endif
#ifdef MTGAP_LAYER_ENABLE
SHOW_MAP(_MTGAP)
#endif
#ifdef CTGAP_LAYER_ENABLE
SHOW_MAP(_CTGAP)
#endif
#ifdef APT_LAYER_ENABLE
SHOW_MAP(_APT)
#endif
#ifdef CANARY_LAYER_ENABLE
SHOW_MAP(_CANARY)
#endif
#ifdef HD_NEU_LAYER_ENABLE
SHOW_MAP(_HD_NEU)
#endif
#ifdef HD_NEU_NARROW_LAYER_ENABLE
SHOW_MAP(_HD_NEU_NARROW)
#endif
#ifdef HD_TITANIUM_LAYER_ENABLE
SHOW_MAP(_HD_TITANIUM)
#endif
#ifdef HD_GOLD_LAYER_ENABLE
SHOW_MAP(_HD_GOLD)
#endif
#ifdef HD_PLATINUM_LAYER_ENABLE
SHOW_MAP(_HD_PLATINUM)
#endif
#ifdef HD_SILVER_LAYER_ENABLE
SHOW_MAP(_HD_SILVER)
#endif
#ifdef HD_BRONZE_LAYER_ENABLE
SHOW_MAP(_HD_BRONZE)
#endif
#ifdef HD_ELAN_LAYER_ENABLE
SHOW_MAP(_HD_ELAN)
#endif
#ifdef HD_DASH_LAYER_ENABLE
SHOW_MAP(_HD_DASH)
#endif
#ifdef HD_REF_LAYER_ENABLE
SHOW_MAP(_HD_REF)
#endif
#ifdef RSTHD_LAYER_ENABLE
SHOW_MAP(_RSTHD)
#endif
#ifdef HANDS_UP_LAYER_ENABLE
SHOW_MAP(_HANDS_UP)
#endif
#ifdef WHITE_LAYER_ENABLE
SHOW_MAP(_WHITE)
#endif
#ifdef ISRT_LAYER_ENABLE
SHOW_MAP(_ISRT)
#endif
#ifdef SOUL_LAYER_ENABLE
SHOW_MAP(_SOUL)
#endif
#ifdef NIRO_LAYER_ENABLE
SHOW_MAP(_NIRO)
#endif
#ifdef ASSET_LAYER_ENABLE
SHOW_MAP(_ASSET)
#endif
#ifdef WHORF_LAYER_ENABLE
SHOW_MAP(_WHORF)
#endif
#ifdef WHORF6_LAYER_ENABLE
SHOW_MAP(_WHORF6)
#endif
#ifdef BEPO_LAYER_ENABLE
SHOW_MAP(_BEPO)
#endif
#ifdef OPTIMOT_LAYER_ENABLE
SHOW_MAP(_OPTIMOT)
#endif
#ifdef OPTIMOT_COMPACT_LAYER_ENABLE
SHOW_MAP(_OPTIMOT_COMPACT)
#endif
#ifdef BEAKL19bis_LAYER_ENABLE
SHOW_MAP(_BEAKL19bis)
#endif
}
} else {
switch (lyr) {
#ifdef TOPROWS_LAYER_ENABLE
LCASE(_TOPROWS)
# ifdef TOPROWS_BKL_NUMS
# ifdef TOPROWS_MOD
CARTE_TOPROWS_MOD
# else
# ifdef TOPROWS_BKL_19_NUMS
CARTE_TOPROWS_BKL19
# else
CARTE_TOPROWS
# endif
# endif
# else // not beakl nums.
CARTE_RAISE
# endif
break;
#endif
case _NAV:
#ifdef NAV_FULL_LOCK_MODS
CARTE_NAVA
#endif
#ifdef NAV_FULL
CARTE_NAV
#endif
#ifdef NAV_NO_MOUSE
CARTE_NAVnm
#endif
#ifdef NAV_MIRYOKU
CARTE_NAV_miryoku
#endif
break;
#ifdef MOUSE_LAYER_ENABLE
case _NAVm:
# ifdef NAV_MOUSE_MIRYOKU
CARTE_NAVm_miryoku
# else
CARTE_NAVm
# endif
break;
#endif
#ifdef MEDIA_LAYER_ENABLE
SHOW_MAP_S(_MEDIA)
#endif
SHOW_MAP_S(_LAYERS)
#ifdef SYMBOL_LAYER_ENABLE
LCASE(_SYMB)
# ifdef SYMBOL_BEAKL
CARTE_SYMB_BEAKL
# endif
# ifdef SYMBOL_BEAKL_EXT
CARTE_SYMB_BEAKLA
# endif
# ifdef SYMBOL_BEAKL_EXT_VI
CARTE_SYMB_BEAKLB
# endif
# ifdef SYMBOL_BEAKL_C
CARTE_SYMB_BEAKLC
# endif
# ifdef SYMBOL_MIRYOKU
CARTE_SYMB_MIRYOKU
# endif
# ifdef SYMBOL_BEAKL_WI
CARTE_SYMB_BEAKL_WI
# endif
# ifdef SYMBOL_BEAKL_WI
CARTE_SYMB_NEO
# endif
break;
#endif
#ifdef KEYAD_LAYER_ENABLE
LCASE(_KEYPAD)
#ifdef KEYPAD_BEAKL
#ifdef KEYPAD_BEAKL_WI
CARTE_KP_BKL_WI
#endif
#ifdef KEYPAD_MODS
CARTE_KP_BKL_MODS
#endif
#if !defined(KEYPAD_MODS) && !defined(KEYPAD_BEAKL_WI)
CARTE_KP_BKL_FUNC
#endif
#ifdef KEYPAD_MIRYOKU
CARTE_KP_MIRYOKU
#endif
#else // not beakl.
#ifdef KEYPAD_RIGHT
#ifdef KEYPAD_MODS
CARTE_MODS_KP
#else
CARTE_FP_KP
#endif
#else // not keypad right.
#ifdef KEYPAD_MODS
CARTE_KP_MODS
#else
CARTE_KP_FP // the final default.
#endif
#endif // end not keypad right.
#endif // end not beakl
break;
#endif // end keypad.
#ifdef MORTE_LAYER_ENABLE
SHOW_MAP(_MORTE)
#endif
#ifdef ACCENTS_MORTE_LAYER_ENABLE
SHOW_MAP(_ACCENTS_MORTE)
#endif
#ifdef ACCENTS_LAYER_ENABLE
SHOW_MAP(_CARTE_ACCENTS)
#endif
}
}
}
#endif
|