aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/ergodox_ez/keymaps/nfriend/config.h31
-rw-r--r--keyboards/ergodox_ez/keymaps/nfriend/keymap.c1096
-rw-r--r--keyboards/ergodox_ez/keymaps/nfriend/readme.md52
-rw-r--r--keyboards/ergodox_ez/keymaps/nfriend/rules.mk8
-rw-r--r--keyboards/ergodox_ez/keymaps/nfriend/template.c92
5 files changed, 1279 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/keymaps/nfriend/config.h b/keyboards/ergodox_ez/keymaps/nfriend/config.h
new file mode 100644
index 000000000..36d23c96b
--- /dev/null
+++ b/keyboards/ergodox_ez/keymaps/nfriend/config.h
@@ -0,0 +1,31 @@
1/* Copyright (C) 2020 Nathan Friend
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#define NO_ACTION_MACRO
19#define NO_ACTION_FUNCTION
20
21#undef DEBOUNCE
22#define DEBOUNCE 15
23
24#undef ONESHOT_TIMEOUT
25#define ONESHOT_TIMEOUT 1003
26
27#define PERMISSIVE_HOLD
28
29#undef IGNORE_MOD_TAP_INTERRUPT
30
31#define RGBLIGHT_SLEEP
diff --git a/keyboards/ergodox_ez/keymaps/nfriend/keymap.c b/keyboards/ergodox_ez/keymaps/nfriend/keymap.c
new file mode 100644
index 000000000..ccea63c97
--- /dev/null
+++ b/keyboards/ergodox_ez/keymaps/nfriend/keymap.c
@@ -0,0 +1,1096 @@
1/* Copyright (C) 2020 Nathan Friend
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18#include "version.h"
19#include "keymap_german.h"
20#include "keymap_nordic.h"
21#include "keymap_french.h"
22#include "keymap_spanish.h"
23#include "keymap_hungarian.h"
24
25#define KC_MAC_UNDO LGUI(KC_Z)
26#define KC_MAC_CUT LGUI(KC_X)
27#define KC_MAC_COPY LGUI(KC_C)
28#define KC_MAC_PASTE LGUI(KC_V)
29#define KC_PC_UNDO LCTL(KC_Z)
30#define KC_PC_CUT LCTL(KC_X)
31#define KC_PC_COPY LCTL(KC_C)
32#define KC_PC_PASTE LCTL(KC_V)
33#define ___ KC_TRNS
34
35/* Shortcut for Option+Ctrl */
36#define OC(keycode) LALT(LCTL(keycode))
37
38enum layer_names {
39
40 /* Base layers */
41 _COLEMAK,
42 _QWERTY,
43 _DVORAK,
44
45 /* Keys the base layers share */
46 _COMMON,
47
48 /* OS layers */
49 _MAC,
50 _WINDOWS,
51
52 /* Symbols */
53 _NUMPAD,
54 _SYMBOLS,
55
56 /* Window management */
57 _WM_MAC,
58 _WM_WINDOWS,
59
60 /* Navigation */
61 _ARROWS_MAC,
62 _ARROWS_WINDOWS,
63
64 _MISC
65};
66
67enum custom_keycodes {
68 RGB_SLD = SAFE_RANGE, /* Can always be here */
69 HSV_0_255_255,
70 HSV_120_255_128,
71 HSV_240_255_255,
72 MAC_MODE,
73 WINDOWS_MODE,
74 DYNAMIC_MACRO_RANGE, /* This needs to be last! */
75};
76
77const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
78 /* clang-format off */
79
80 [_COLEMAK] = LAYOUT_ergodox(
81 /* Left hand */
82
83 /*=========================================================================================================*/
84 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
85 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
86 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
87 /*=========================================================================================================*/
88 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
89 /**/ _______, /**/ KC_Q, /**/ KC_W, /**/ KC_F, /**/ KC_P, /**/ KC_G, /**/ _______, /**/
90 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
91 /*==========================================================================================*/ /**/
92 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
93 /**/ _______, /**/ KC_A, /**/ KC_R, /**/ KC_S, /**/ KC_T, /**/ KC_D, /*===============*/
94 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
95 /*==========================================================================================*/ /**/
96 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
97 /**/ _______, /**/ KC_Z, /**/ KC_X, /**/ KC_C, /**/ KC_V, /**/ KC_B, /**/ _______, /**/
98 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
99 /*=========================================================================================================*/
100 /**/ /**/ /**/ /**/ /**/ /**/
101 /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
102 /**/ /**/ /**/ /**/ /**/ /**/
103 /*=======================================================================*/
104 /*==============================*/
105 /**/ /**/ /**/
106 /**/ _______, /**/ _______, /**/
107 /**/ /**/ /**/
108 /*=============================================*/
109 /**/ /**/ /**/ /**/
110 /**/ /**/ /**/ _______, /**/
111 /**/ /**/ /**/ /**/
112 /**/ /**/ /*===============*/
113 /**/ /**/ /**/ /**/
114 /**/ _______, /**/ _______, /**/ _______, /**/
115 /**/ /**/ /**/ /**/
116 /*=============================================*/
117
118 /* Right hand */
119
120 /*=========================================================================================================*/
121 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
122 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
123 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
124 /*=========================================================================================================*/
125 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
126 /**/ _______, /**/ KC_J, /**/ KC_L, /**/ KC_U, /**/ KC_Y, /**/ KC_SCOLON,/**/ _______, /**/
127 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
128 /**/ /*==========================================================================================*/
129 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
130 /*===============*/ KC_H, /**/ KC_N, /**/ KC_E, /**/ KC_I, /**/ KC_O, /**/ _______, /**/
131 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
132 /**/ /*==========================================================================================*/
133 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
134 /**/ _______, /**/ KC_K, /**/ KC_M, /**/ KC_COMMA, /**/ KC_DOT, /**/ KC_SLASH, /**/ _______, /**/
135 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
136 /*=========================================================================================================*/
137 /**/ /**/ /**/ /**/ /**/ /**/
138 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/
139 /**/ /**/ /**/ /**/ /**/ /**/
140 /*=======================================================================*/
141 /*==============================*/
142 /**/ /**/ /**/
143 /**/ _______, /**/ _______, /**/
144 /**/ /**/ /**/
145 /*=============================================*/
146 /**/ /**/ /**/ /**/
147 /**/ _______, /**/ /**/ /**/
148 /**/ /**/ /**/ /**/
149 /*===============*/ /**/ /**/
150 /**/ /**/ /**/ /**/
151 /**/ _______, /**/ _______, /**/ _______ /**/
152 /**/ /**/ /**/ /**/
153 /*=============================================*/
154 ),
155
156 [_QWERTY] = LAYOUT_ergodox(
157 /* Left hand */
158
159 /*=========================================================================================================*/
160 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
161 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
162 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
163 /*=========================================================================================================*/
164 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
165 /**/ _______, /**/ KC_Q, /**/ KC_W, /**/ KC_E, /**/ KC_R, /**/ KC_T, /**/ _______, /**/
166 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
167 /*==========================================================================================*/ /**/
168 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
169 /**/ _______, /**/ KC_A, /**/ KC_S, /**/ KC_D, /**/ KC_F, /**/ KC_G, /*===============*/
170 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
171 /*==========================================================================================*/ /**/
172 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
173 /**/ _______, /**/ KC_Z, /**/ KC_X, /**/ KC_C, /**/ KC_V, /**/ KC_B, /**/ _______, /**/
174 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
175 /*=========================================================================================================*/
176 /**/ /**/ /**/ /**/ /**/ /**/
177 /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
178 /**/ /**/ /**/ /**/ /**/ /**/
179 /*=======================================================================*/
180 /*==============================*/
181 /**/ /**/ /**/
182 /**/ _______, /**/ _______, /**/
183 /**/ /**/ /**/
184 /*=============================================*/
185 /**/ /**/ /**/ /**/
186 /**/ /**/ /**/ _______, /**/
187 /**/ /**/ /**/ /**/
188 /**/ /**/ /*===============*/
189 /**/ /**/ /**/ /**/
190 /**/ _______, /**/ _______, /**/ _______, /**/
191 /**/ /**/ /**/ /**/
192 /*=============================================*/
193
194 /* Right hand */
195
196 /*=========================================================================================================*/
197 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
198 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
199 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
200 /*=========================================================================================================*/
201 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
202 /**/ _______, /**/ KC_Y, /**/ KC_U, /**/ KC_I, /**/ KC_O, /**/ KC_P, /**/ _______, /**/
203 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
204 /**/ /*==========================================================================================*/
205 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
206 /*===============*/ KC_H, /**/ KC_J, /**/ KC_K, /**/ KC_L, /**/ KC_SCOLON,/**/ _______, /**/
207 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
208 /**/ /*==========================================================================================*/
209 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
210 /**/ _______, /**/ KC_N, /**/ KC_M, /**/ KC_COMMA, /**/ KC_DOT, /**/ KC_SLASH, /**/ _______, /**/
211 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
212 /*=========================================================================================================*/
213 /**/ /**/ /**/ /**/ /**/ /**/
214 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/
215 /**/ /**/ /**/ /**/ /**/ /**/
216 /*=======================================================================*/
217 /*==============================*/
218 /**/ /**/ /**/
219 /**/ _______, /**/ _______, /**/
220 /**/ /**/ /**/
221 /*=============================================*/
222 /**/ /**/ /**/ /**/
223 /**/ _______, /**/ /**/ /**/
224 /**/ /**/ /**/ /**/
225 /*===============*/ /**/ /**/
226 /**/ /**/ /**/ /**/
227 /**/ _______, /**/ _______, /**/ _______ /**/
228 /**/ /**/ /**/ /**/
229 /*=============================================*/
230 ),
231
232 [_DVORAK] = LAYOUT_ergodox(
233 /* Left hand */
234
235 /*=========================================================================================================*/
236 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
237 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
238 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
239 /*=========================================================================================================*/
240 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
241 /**/ _______, /**/ KC_QUOTE, /**/ KC_COMMA, /**/ KC_DOT, /**/ KC_P, /**/ KC_Y, /**/ _______, /**/
242 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
243 /*==========================================================================================*/ /**/
244 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
245 /**/ _______, /**/ KC_A, /**/ KC_O, /**/ KC_E, /**/ KC_U, /**/ KC_I, /*===============*/
246 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
247 /*==========================================================================================*/ /**/
248 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
249 /**/ _______, /**/ KC_SCOLON,/**/ KC_Q, /**/ KC_J, /**/ KC_K, /**/ KC_X, /**/ _______, /**/
250 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
251 /*=========================================================================================================*/
252 /**/ /**/ /**/ /**/ /**/ /**/
253 /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
254 /**/ /**/ /**/ /**/ /**/ /**/
255 /*=======================================================================*/
256 /*==============================*/
257 /**/ /**/ /**/
258 /**/ _______, /**/ _______, /**/
259 /**/ /**/ /**/
260 /*=============================================*/
261 /**/ /**/ /**/ /**/
262 /**/ /**/ /**/ _______, /**/
263 /**/ /**/ /**/ /**/
264 /**/ /**/ /*===============*/
265 /**/ /**/ /**/ /**/
266 /**/ _______, /**/ _______, /**/ _______, /**/
267 /**/ /**/ /**/ /**/
268 /*=============================================*/
269
270 /* Right hand */
271
272 /*=========================================================================================================*/
273 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
274 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
275 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
276 /*=========================================================================================================*/
277 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
278 /**/ _______, /**/ KC_F, /**/ KC_G, /**/ KC_C, /**/ KC_R, /**/ KC_L, /**/ _______, /**/
279 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
280 /**/ /*==========================================================================================*/
281 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
282 /*===============*/ KC_D, /**/ KC_H, /**/ KC_T, /**/ KC_N, /**/ KC_S, /**/ _______, /**/
283 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
284 /**/ /*==========================================================================================*/
285 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
286 /**/ _______, /**/ KC_B, /**/ KC_M, /**/ KC_W, /**/ KC_V, /**/ KC_Z, /**/ _______, /**/
287 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
288 /*=========================================================================================================*/
289 /**/ /**/ /**/ /**/ /**/ /**/
290 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/
291 /**/ /**/ /**/ /**/ /**/ /**/
292 /*=======================================================================*/
293 /*==============================*/
294 /**/ /**/ /**/
295 /**/ _______, /**/ _______, /**/
296 /**/ /**/ /**/
297 /*=============================================*/
298 /**/ /**/ /**/ /**/
299 /**/ _______, /**/ /**/ /**/
300 /**/ /**/ /**/ /**/
301 /*===============*/ /**/ /**/
302 /**/ /**/ /**/ /**/
303 /**/ _______, /**/ _______, /**/ _______ /**/
304 /**/ /**/ /**/ /**/
305 /*=============================================*/
306 ),
307
308 [_COMMON] = LAYOUT_ergodox(
309 /* Left hand */
310
311 /*=========================================================================================================*/
312 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
313 /**/ KC_ESCAPE,/**/ KC_1, /**/ KC_2, /**/ KC_3, /**/ KC_4, /**/ KC_5, /**/ _______, /**/
314 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
315 /*=========================================================================================================*/
316 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
317 /**/ KC_TAB, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
318 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
319 /*==========================================================================================*/ /**/
320 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
321 /**/MO(_SYMBOLS), _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /*===============*/
322 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
323 /*==========================================================================================*/ /**/
324 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
325 /**/KC_LSHIFT, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LT(_NUMPAD,KC_TAB),
326 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
327 /*=========================================================================================================*/
328 /**/ /**/ /**/ /**/ /**/ /**/
329 /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
330 /**/ /**/ /**/ /**/ /**/ /**/
331 /*=======================================================================*/
332 /*==============================*/
333 /**/ /**/ /**/
334 /**/ KC_SPACE, /**/ _______, /**/
335 /**/ /**/ /**/
336 /*=============================================*/
337 /**/ /**/ /**/ /**/
338 /**/ /**/ /**/ KC_AUDIO_VOL_DOWN,
339 /**/ /**/ /**/ /**/
340 /**/ /**/ /*===============*/
341 /**/ /**/ /**/ /**/
342 /**/ KC_BSPACE,/**/ _______, /**/ KC_ENTER, /**/
343 /**/ /**/ /**/ /**/
344 /*=============================================*/
345
346 /* Right hand */
347
348 /*=========================================================================================================*/
349 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
350 /**/ _______, /**/ KC_6, /**/ KC_7, /**/ KC_8, /**/ KC_9, /**/ KC_0, /**/ KC_F12, /**/
351 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
352 /*=========================================================================================================*/
353 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
354 /**/ KC_HYPR, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ KC_BSLASH,/**/
355 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
356 /**/ /*==========================================================================================*/
357 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
358 /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/MO(_SYMBOLS),//
359 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
360 /**/ /*==========================================================================================*/
361 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
362 /**/ KC_MEH, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/KC_RSHIFT, /**/
363 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
364 /*=========================================================================================================*/
365 /**/ /**/ /**/ /**/ /**/ /**/
366 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/TT(_MISC),
367 /**/ /**/ /**/ /**/ /**/ /**/
368 /*=======================================================================*/
369 /*==============================*/
370 /**/ /**/ /**/
371 /**/ _______, /**/ KC_CAPS, /**/
372 /**/ /**/ /**/
373 /*=============================================*/
374 /**/ /**/ /**/ /**/
375 KC_AUDIO_VOL_UP,/**/ /**/ /**/
376 /**/ /**/ /**/ /**/
377 /*===============*/ /**/ /**/
378 /**/ /**/ /**/ /**/
379 /**/ KC_ESCAPE,/**/ KC_ENTER, /**/ KC_SPACE /**/
380 /**/ /**/ /**/ /**/
381 /*=============================================*/
382 ),
383
384 [_MAC] = LAYOUT_ergodox(
385 /* Left hand */
386
387 /*=========================================================================================================*/
388 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
389 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LCTL(LGUI(LSFT(KC_4))),
390 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
391 /*=========================================================================================================*/
392 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
393 /**/ _______ ,/**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LALT(KC_BSPACE),
394 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
395 /*==========================================================================================*/ /**/
396 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
397 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /*===============*/
398 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
399 /*==========================================================================================*/ /**/
400 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
401 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
402 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
403 /*=========================================================================================================*/
404 /**/ /**/ /**/ /**/ /**/ /**/
405 KC_LCTRL,/**/ KC_LGUI, /**/ KC_LALT, /**/MO(_WM_MAC), MO(_ARROWS_MAC),
406 /**/ /**/ /**/ /**/ /**/ /**/
407 /*=======================================================================*/
408 /*==============================*/
409 /**/ /**/ /**/
410 /**/ _______, /**/LCTL(LGUI(KC_Q)),
411 /**/ /**/ /**/
412 /*=============================================*/
413 /**/ /**/ /**/ /**/
414 /**/ /**/ /**/ _______, /**/
415 /**/ /**/ /**/ /**/
416 /**/ /**/ /*===============*/
417 /**/ /**/ /**/ /**/
418 /**/ _______, /**/ KC_LGUI, /**/ _______, /**/
419 /**/ /**/ /**/ /**/
420 /*=============================================*/
421
422 /* Right hand */
423
424 /*=========================================================================================================*/
425 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
426 RGUI(RSFT(KC_7)),/**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
427 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
428 /*=========================================================================================================*/
429 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
430 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
431 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
432 /**/ /*==========================================================================================*/
433 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
434 /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
435 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
436 /**/ /*==========================================================================================*/
437 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
438 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
439 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
440 /*=========================================================================================================*/
441 /**/ /**/ /**/ /**/ /**/ /**/
442 MO(_ARROWS_MAC), MO(_WM_MAC),/**/ KC_LALT, /**/ KC_LGUI, /**/ ___, /**/
443 /**/ /**/ /**/ /**/ /**/ /**/
444 /*=======================================================================*/
445 /*==============================*/
446 /**/ /**/ /**/
447 LCTL(LGUI(KC_Q)),/**/ KC_CAPS, /**/
448 /**/ /**/ /**/
449 /*=============================================*/
450 /**/ /**/ /**/ /**/
451 /**/ _______, /**/ /**/ /**/
452 /**/ /**/ /**/ /**/
453 /*===============*/ /**/ /**/
454 /**/ /**/ /**/ /**/
455 /**/ _______, /**/ _______, /**/ _______ /**/
456 /**/ /**/ /**/ /**/
457 /*=============================================*/
458 ),
459
460 [_WINDOWS] = LAYOUT_ergodox(
461 /* Left hand */
462
463 /*=========================================================================================================*/
464 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
465 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LGUI(LSFT(KC_S)),
466 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
467 /*=========================================================================================================*/
468 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
469 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LCTL(KC_BSPACE),
470 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
471 /*==========================================================================================*/ /**/
472 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
473 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /*===============*/
474 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
475 /*==========================================================================================*/ /**/
476 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
477 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
478 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
479 /*=========================================================================================================*/
480 /**/ /**/ /**/ /**/ /**/ /**/
481 KC_LGUI, /**/ KC_LCTRL, /**/ KC_LALT, MO(_WM_WINDOWS), MO(_ARROWS_WINDOWS),
482 /**/ /**/ /**/ /**/ /**/ /**/
483 /*=======================================================================*/
484 /*==============================*/
485 /**/ /**/ /**/
486 /**/ _______, /**/LGUI(KC_L),/**/
487 /**/ /**/ /**/
488 /*=============================================*/
489 /**/ /**/ /**/ /**/
490 /**/ /**/ /**/ _______, /**/
491 /**/ /**/ /**/ /**/
492 /**/ /**/ /*===============*/
493 /**/ /**/ /**/ /**/
494 /**/ _______, /**/ KC_LCTRL, /**/ _______, /**/
495 /**/ /**/ /**/ /**/
496 /*=============================================*/
497
498 /* Right hand */
499
500 /*=========================================================================================================*/
501 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
502 LALT(KC_PSCREEN),/**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
503 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
504 /*=========================================================================================================*/
505 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
506 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
507 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
508 /**/ /*==========================================================================================*/
509 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
510 /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
511 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
512 /**/ /*==========================================================================================*/
513 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
514 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
515 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
516 /*=========================================================================================================*/
517 /**/ /**/ /**/ /**/ /**/ /**/
518 MO(_ARROWS_WINDOWS), MO(_WM_WINDOWS), KC_RALT, /**/ KC_RCTRL, /**/ ___, /**/
519 /**/ /**/ /**/ /**/ /**/ /**/
520 /*=======================================================================*/
521 /*==============================*/
522 /**/ /**/ /**/
523 /**/LGUI(KC_L),/**/ _______, /**/
524 /**/ /**/ /**/
525 /*=============================================*/
526 /**/ /**/ /**/ /**/
527 /**/ _______, /**/ /**/ /**/
528 /**/ /**/ /**/ /**/
529 /*===============*/ /**/ /**/
530 /**/ /**/ /**/ /**/
531 /**/ _______, /**/ _______, /**/ _______ /**/
532 /**/ /**/ /**/ /**/
533 /*=============================================*/
534 ),
535
536 [_NUMPAD] = LAYOUT_ergodox(
537 /* Left hand */
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 /* Right hand */
575
576 /*=========================================================================================================*/
577 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
578 /**/ _______, /**/ XXXXXXX, /**/ KC_ESCAPE, LALT(KC_KP_MINUS), KC_PERC, /**/KC_KP_SLASH, _______, /**/
579 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
580 /*=========================================================================================================*/
581 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
582 /**/ _______, /**/ XXXXXXX, /**/ KC_KP_7, /**/ KC_KP_8, /**/ KC_KP_9, /**/KC_KP_ASTERISK, _______, /**/
583 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
584 /**/ /*==========================================================================================*/
585 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
586 /*===============*/ KC_COLN, /**/ KC_KP_4, /**/ KC_KP_5, /**/ KC_KP_6, /**/KC_KP_MINUS, _______, /**/
587 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
588 /**/ /*==========================================================================================*/
589 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
590 /**/ _______, /**/ KC_COMMA, /**/ KC_KP_1, /**/ KC_KP_2, /**/ KC_KP_3, /**/KC_KP_PLUS,/**/ _______, /**/
591 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
592 /*=========================================================================================================*/
593 /**/ /**/ /**/ /**/ /**/ /**/
594 /**/ KC_0, /**/ KC_0, /**/ KC_DOT, /**/KC_KP_ENTER, ___, /**/
595 /**/ /**/ /**/ /**/ /**/ /**/
596 /*=======================================================================*/
597 /*==============================*/
598 /**/ /**/ /**/
599 /**/ _______, /**/ _______, /**/
600 /**/ /**/ /**/
601 /*=============================================*/
602 /**/ /**/ /**/ /**/
603 /**/ _______, /**/ /**/ /**/
604 /**/ /**/ /**/ /**/
605 /*===============*/ /**/ /**/
606 /**/ /**/ /**/ /**/
607 /**/ _______, /**/ _______, /**/ KC_0 /**/
608 /**/ /**/ /**/ /**/
609 /*=============================================*/
610 ),
611
612 [_SYMBOLS] = LAYOUT_ergodox(
613 /* Left hand */
614
615 /*=========================================================================================================*/
616 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
617 /**/ _______, /**/ KC_F1, /**/ KC_F2, /**/ KC_F3, /**/ KC_F4, /**/ KC_F5, /**/ _______, /**/
618 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
619 /*=========================================================================================================*/
620 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
621 /**/ _______, /**/ KC_EXLM, /**/ KC_AT, /**/ KC_LCBR, /**/ KC_RCBR, /**/ KC_PERC, /**/ _______, /**/
622 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
623 /*==========================================================================================*/ /**/
624 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
625 LGUI(KC_BSPACE),/**/ KC_HASH, /**/ KC_UNDS, /**/ KC_LPRN, /**/ KC_RPRN, /**/ KC_AMPR, /*===============*/
626 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
627 /*==========================================================================================*/ /**/
628 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
629 /**/ _______, /**/ KC_BSLASH,/**/ KC_SLASH, /**/KC_LBRACKET, KC_RBRACKET,/**/ KC_TILD, /**/ _______, /**/
630 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
631 /*=========================================================================================================*/
632 /**/ /**/ /**/ /**/ /**/ /**/
633 /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
634 /**/ /**/ /**/ /**/ /**/ /**/
635 /*=======================================================================*/
636 /*==============================*/
637 /**/ /**/ /**/
638 /**/ _______, /**/ _______, /**/
639 /**/ /**/ /**/
640 /*=============================================*/
641 /**/ /**/ /**/ /**/
642 /**/ /**/ /**/ _______, /**/
643 /**/ /**/ /**/ /**/
644 /**/ /**/ /*===============*/
645 /**/ /**/ /**/ /**/
646 /**/ _______, /**/ _______, /**/ _______, /**/
647 /**/ /**/ /**/ /**/
648 /*=============================================*/
649
650 /* Right hand */
651
652 /*=========================================================================================================*/
653 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
654 /**/ _______, /**/ KC_F6, /**/ KC_F7, /**/ KC_F8, /**/ KC_F9, /**/ KC_F10, /**/ KC_F11, /**/
655 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
656 /*=========================================================================================================*/
657 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
658 /**/ _______, /**/ KC_CIRC, /**/KC_KP_PLUS,/**/KC_KP_MINUS, KC_GRAVE, /**/ KC_SCOLON,/**/ _______, /**/
659 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
660 /**/ /*==========================================================================================*/
661 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
662 /*===============*/ KC_PIPE, /**/ KC_EQUAL, /**/ KC_QUOTE, /**/ KC_COLN, /**/ KC_DQUO, /**/LGUI(KC_DELETE),
663 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
664 /**/ /*==========================================================================================*/
665 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
666 /**/ _______, /**/ KC_DLR, /**/ KC_ASTR, /**/ KC_LABK, /**/ KC_RABK, /**/ KC_SLASH, /**/ _______, /**/
667 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
668 /*=========================================================================================================*/
669 /**/ /**/ /**/ /**/ /**/ /**/
670 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/
671 /**/ /**/ /**/ /**/ /**/ /**/
672 /*=======================================================================*/
673 /*==============================*/
674 /**/ /**/ /**/
675 /**/ _______, /**/ _______, /**/
676 /**/ /**/ /**/
677 /*=============================================*/
678 /**/ /**/ /**/ /**/
679 /**/ _______, /**/ /**/ /**/
680 /**/ /**/ /**/ /**/
681 /*===============*/ /**/ /**/
682 /**/ /**/ /**/ /**/
683 /**/ _______, /**/ _______, /**/ _______ /**/
684 /**/ /**/ /**/ /**/
685 /*=============================================*/
686 ),
687
688 [_WM_MAC] = LAYOUT_ergodox(
689 /* Left hand */
690
691 /*=========================================================================================================*/
692 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
693 /**/ _______, /**/ _______, /**/ _______, /**/ OC(KC_C), /**/ _______, /**/ _______, /**/ _______, /**/
694 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
695 /*=========================================================================================================*/
696 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
697 /**/ _______, /**/ OC(KC_U), OC(LGUI(KC_LEFT)),OC(KC_ENTER),OC(LGUI(KC_RIGHT)), OC(KC_I),/**/ _______, /**/
698 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
699 /*==========================================================================================*/ /**/
700 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
701 /**/ _______, /**/ OC(KC_J), OC(KC_LEFT), OC(KC_BSPACE), OC(KC_RIGHT), OC(KC_K), /*===============*/
702 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
703 /*==========================================================================================*/ /**/
704 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
705 /**/ _______, /**/ KC_UP, /**/ OC(KC_E), /**/ OC(KC_F), /**/ OC(KC_T), /**/ OC(KC_G), /**/ _______, /**/
706 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
707 /*=========================================================================================================*/
708 /**/ /**/ /**/ /**/ /**/ /**/
709 /**/KC_LEFT, KC_DOWN, /**/ KC_RIGHT, /**/ _______, /**/ _______, /**/
710 /**/ /**/ /**/ /**/ /**/ /**/
711 /*=======================================================================*/
712 /*==============================*/
713 /**/ /**/ /**/
714 /**/ _______, /**/ _______, /**/
715 /**/ /**/ /**/
716 /*=============================================*/
717 /**/ /**/ /**/ /**/
718 /**/ /**/ /**/ _______, /**/
719 /**/ /**/ /**/ /**/
720 /**/ /**/ /*===============*/
721 /**/ /**/ /**/ /**/
722 /**/ _______, /**/ _______, /**/ _______, /**/
723 /**/ /**/ /**/ /**/
724 /*=============================================*/
725
726 /* Right hand */
727
728 /*=========================================================================================================*/
729 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
730 /**/ _______, /**/ _______, /**/ _______, /**/ OC(KC_C), /**/ _______, /**/ _______, /**/ _______, /**/
731 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
732 /*=========================================================================================================*/
733 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
734 /**/ _______, /**/ OC(KC_U), OC(LGUI(KC_LEFT)),OC(KC_ENTER),OC(LGUI(KC_RIGHT)), OC(KC_I),/**/ _______, /**/
735 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
736 /**/ /*==========================================================================================*/
737 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
738 /*===============*/ OC(KC_J), OC(KC_LEFT), OC(KC_BSPACE), OC(KC_RIGHT), OC(KC_K), /**/ _______, /**/
739 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
740 /**/ /*==========================================================================================*/
741 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
742 /**/ _______, /**/ OC(KC_D), /**/ OC(KC_E), /**/ OC(KC_F), /**/ OC(KC_T), /**/ KC_UP, /**/ _______, /**/
743 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
744 /*=========================================================================================================*/
745 /**/ /**/ /**/ /**/ /**/ /**/
746 /**/ _______, /**/ _______, /**/ KC_LEFT, /**/ KC_DOWN, /**/KC_RIGHT,//
747 /**/ /**/ /**/ /**/ /**/ /**/
748 /*=======================================================================*/
749 /*==============================*/
750 /**/ /**/ /**/
751 /**/ _______, /**/ _______, /**/
752 /**/ /**/ /**/
753 /*=============================================*/
754 /**/ /**/ /**/ /**/
755 /**/ _______, /**/ /**/ /**/
756 /**/ /**/ /**/ /**/
757 /*===============*/ /**/ /**/
758 /**/ /**/ /**/ /**/
759 /**/ _______, /**/ _______, /**/ _______ /**/
760 /**/ /**/ /**/ /**/
761 /*=============================================*/
762 ),
763
764 [_ARROWS_MAC] = LAYOUT_ergodox(
765 /* Left hand */
766
767 /*=========================================================================================================*/
768 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
769 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
770 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
771 /*=========================================================================================================*/
772 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
773 /**/ _______, /**/LGUI(KC_Q),/**/LGUI(KC_W),/**/LGUI(KC_F),/**/LGUI(KC_P),/**/LGUI(KC_G),/**/ _______, /**/
774 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
775 /*==========================================================================================*/ /**/
776 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
777 /**/ _______, /**/ KC_LCTRL, /**/ KC_LGUI, /**/ KC_LSHIFT,/**/ KC_LALT, /**/LGUI(KC_D),/*===============*/
778 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
779 /*==========================================================================================*/ /**/
780 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
781 /**/ _______, /**/LGUI(KC_Z),/**/LGUI(KC_X),/**/LGUI(KC_C),/**/LGUI(KC_V),/**/LGUI(KC_B),/**/ _______, /**/
782 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
783 /*=========================================================================================================*/
784 /**/ /**/ /**/ /**/ /**/ /**/
785 /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
786 /**/ /**/ /**/ /**/ /**/ /**/
787 /*=======================================================================*/
788 /*==============================*/
789 /**/ /**/ /**/
790 /**/ _______, /**/ _______, /**/
791 /**/ /**/ /**/
792 /*=============================================*/
793 /**/ /**/ /**/ /**/
794 /**/ /**/ /**/ _______, /**/
795 /**/ /**/ /**/ /**/
796 /**/ /**/ /*===============*/
797 /**/ /**/ /**/ /**/
798 /**/ _______, /**/ _______, /**/ _______, /**/
799 /**/ /**/ /**/ /**/
800 /*=============================================*/
801
802 /* Right hand */
803
804 /*=========================================================================================================*/
805 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
806 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
807 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
808 /*=========================================================================================================*/
809 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
810 /**/ _______, /**/RGUI(KC_J),/**/ KC_BSPACE,/**/ KC_UP, /**/ KC_DELETE, RGUI(KC_SCOLON), _______, /**/
811 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
812 /**/ /*==========================================================================================*/
813 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
814 /*===============*/RGUI(KC_H),/**/ KC_LEFT, /**/ KC_DOWN, /**/ KC_RIGHT, /**/ KC_ENTER, /**/ _______, /**/
815 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
816 /**/ /*==========================================================================================*/
817 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
818 /**/ _______, /**/RGUI(KC_K),/**/RGUI(KC_M), RGUI(KC_COMMA), RGUI(KC_DOT), RGUI(KC_SLASH), _______, /**/
819 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
820 /*=========================================================================================================*/
821 /**/ /**/ /**/ /**/ /**/ /**/
822 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/
823 /**/ /**/ /**/ /**/ /**/ /**/
824 /*=======================================================================*/
825 /*==============================*/
826 /**/ /**/ /**/
827 /**/ _______, /**/ _______, /**/
828 /**/ /**/ /**/
829 /*=============================================*/
830 /**/ /**/ /**/ /**/
831 /**/ _______, /**/ /**/ /**/
832 /**/ /**/ /**/ /**/
833 /*===============*/ /**/ /**/
834 /**/ /**/ /**/ /**/
835 /**/ _______, /**/ _______, /**/ _______ /**/
836 /**/ /**/ /**/ /**/
837 /*=============================================*/
838 ),
839
840 [_ARROWS_WINDOWS] = LAYOUT_ergodox(
841 /* Left hand */
842
843 /*=========================================================================================================*/
844 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
845 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
846 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
847 /*=========================================================================================================*/
848 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
849 /**/ _______, /**/LCTL(KC_Q),/**/LCTL(KC_W),/**/LCTL(KC_F),/**/LCTL(KC_P),/**/LCTL(KC_G),/**/ _______, /**/
850 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
851 /*==========================================================================================*/ /**/
852 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
853 /**/ _______, /**/ KC_LGUI, /**/ KC_HYPR, /**/ KC_LSHIFT,/**/ KC_LCTRL, /**/LCTL(KC_D),/*===============*/
854 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
855 /*==========================================================================================*/ /**/
856 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
857 /**/ _______, /**/LCTL(KC_Z),/**/LCTL(KC_X),/**/LCTL(KC_C),/**/LCTL(KC_V),/**/LCTL(KC_B),/**/ _______, /**/
858 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
859 /*=========================================================================================================*/
860 /**/ /**/ /**/ /**/ /**/ /**/
861 /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
862 /**/ /**/ /**/ /**/ /**/ /**/
863 /*=======================================================================*/
864 /*==============================*/
865 /**/ /**/ /**/
866 /**/ _______, /**/ _______, /**/
867 /**/ /**/ /**/
868 /*=============================================*/
869 /**/ /**/ /**/ /**/
870 /**/ /**/ /**/ _______, /**/
871 /**/ /**/ /**/ /**/
872 /**/ /**/ /*===============*/
873 /**/ /**/ /**/ /**/
874 /**/ _______, /**/ _______, /**/ _______, /**/
875 /**/ /**/ /**/ /**/
876 /*=============================================*/
877
878 /* Right hand */
879
880 /*=========================================================================================================*/
881 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
882 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
883 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
884 /*=========================================================================================================*/
885 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
886 /**/ _______, /**/RCTL(KC_J),/**/ KC_BSPACE,/**/ KC_UP, /**/ KC_DELETE, RCTL(KC_SCOLON), _______, /**/
887 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
888 /**/ /*==========================================================================================*/
889 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
890 /*===============*/RCTL(KC_H),/**/ KC_LEFT, /**/ KC_DOWN, /**/ KC_RIGHT, /**/ KC_ENTER, /**/ _______, /**/
891 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
892 /**/ /*==========================================================================================*/
893 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
894 /**/ _______, /**/RCTL(KC_K),/**/RCTL(KC_M), RCTL(KC_COMMA), RCTL(KC_DOT), RCTL(KC_SLASH), _______, /**/
895 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
896 /*=========================================================================================================*/
897 /**/ /**/ /**/ /**/ /**/ /**/
898 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/
899 /**/ /**/ /**/ /**/ /**/ /**/
900 /*=======================================================================*/
901 /*==============================*/
902 /**/ /**/ /**/
903 /**/ _______, /**/ _______, /**/
904 /**/ /**/ /**/
905 /*=============================================*/
906 /**/ /**/ /**/ /**/
907 /**/ _______, /**/ /**/ /**/
908 /**/ /**/ /**/ /**/
909 /*===============*/ /**/ /**/
910 /**/ /**/ /**/ /**/
911 /**/ _______, /**/ _______, /**/ _______ /**/
912 /**/ /**/ /**/ /**/
913 /*=============================================*/
914 ),
915
916 [_MISC] = LAYOUT_ergodox(
917 /* Left hand */
918
919 /*=========================================================================================================*/
920 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
921 /**/ _______, /**/ KC_F14, /**/ KC_F15, /**/ _______, /**/ _______, /**/ _______, /**/ RESET, /**/
922 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
923 /*=========================================================================================================*/
924 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
925 /**/ _______, /**/ _______, /**/ _______, /**/ KC_MS_UP, /**/ _______, /**/ _______, /**/ _______, /**/
926 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
927 /*==========================================================================================*/ /**/
928 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
929 /**/ _______, /**/ _______, /**/KC_MS_LEFT,/**/KC_MS_DOWN,/**/KC_MS_RIGHT, _______, /*===============*/
930 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
931 /*==========================================================================================*/ /**/
932 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
933 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
934 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
935 /*=========================================================================================================*/
936 /**/ /**/ /**/ /**/ /**/ /**/
937 /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
938 /**/ /**/ /**/ /**/ /**/ /**/
939 /*=======================================================================*/
940 /*==============================*/
941 /**/ /**/ /**/
942 /**/ RGB_MOD, /**/HSV_0_255_255,
943 /**/ /**/ /**/
944 /*=============================================*/
945 /**/ /**/ /**/ /**/
946 /**/ /**/ /**/HSV_120_255_128,
947 /**/ /**/ /**/ /**/
948 /**/ /**/ /*===============*/
949 /**/ /**/ /**/ /**/
950 /**/KC_MS_BTN1,/**/KC_MS_BTN2,/**/HSV_240_255_255,
951 /**/ /**/ /**/ /**/
952 /*=============================================*/
953
954 /* Right hand */
955
956 /*=========================================================================================================*/
957 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
958 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/KC_MEDIA_EJECT,
959 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
960 /*=========================================================================================================*/
961 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
962 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
963 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
964 /**/ /*==========================================================================================*/
965 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
966 /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/
967 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
968 /**/ /*==========================================================================================*/
969 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
970 /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/DF(_DVORAK), DF(_QWERTY), DF(_COLEMAK),//
971 /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
972 /*=========================================================================================================*/
973 /**/ /**/ /**/ /**/ /**/ /**/
974 /**/ _______, /**/ _______, WINDOWS_MODE, MAC_MODE, /**/ ___, /**/
975 /**/ /**/ /**/ /**/ /**/ /**/
976 /*=======================================================================*/
977 /*==============================*/
978 /**/ /**/ /**/
979 /**/ RGB_TOG, /**/ RGB_SLD, /**/
980 /**/ /**/ /**/
981 /*=============================================*/
982 /**/ /**/ /**/ /**/
983 /**/ RGB_VAI, /**/ /**/ /**/
984 /**/ /**/ /**/ /**/
985 /*===============*/ /**/ /**/
986 /**/ /**/ /**/ /**/
987 /**/ RGB_VAD, /**/ RGB_HUD, /**/ RGB_HUI /**/
988 /**/ /**/ /**/ /**/
989 /*=============================================*/
990 ),
991
992 /* clang-format on */
993};
994
995bool suspended = false;
996
997bool process_record_user(uint16_t keycode, keyrecord_t *record) {
998 switch (keycode) {
999 case EEP_RST:
1000 if (record->event.pressed) {
1001 eeconfig_init();
1002 }
1003 return false;
1004 break;
1005 case RGB_SLD:
1006 if (record->event.pressed) {
1007 rgblight_mode(1);
1008 }
1009 return false;
1010 break;
1011 case HSV_0_255_255:
1012 if (record->event.pressed) {
1013#ifdef RGBLIGHT_ENABLE
1014 rgblight_enable();
1015 rgblight_mode(1);
1016 rgblight_sethsv(0, 255, 255);
1017#endif
1018 }
1019 return false;
1020 break;
1021 case HSV_120_255_128:
1022 if (record->event.pressed) {
1023#ifdef RGBLIGHT_ENABLE
1024 rgblight_enable();
1025 rgblight_mode(1);
1026 rgblight_sethsv(120, 255, 128);
1027#endif
1028 }
1029 return false;
1030 break;
1031 case HSV_240_255_255:
1032 if (record->event.pressed) {
1033#ifdef RGBLIGHT_ENABLE
1034 rgblight_enable();
1035 rgblight_mode(1);
1036 rgblight_sethsv(240, 255, 255);
1037#endif
1038 }
1039 return false;
1040 break;
1041 case MAC_MODE:
1042 if (record->event.pressed) {
1043 layer_on(_MAC);
1044 layer_off(_WINDOWS);
1045 }
1046 return false;
1047 break;
1048 case WINDOWS_MODE:
1049 if (record->event.pressed) {
1050 layer_on(_WINDOWS);
1051 layer_off(_MAC);
1052 }
1053 return false;
1054 break;
1055 }
1056 return true;
1057}
1058
1059uint32_t layer_state_set_user(uint32_t state) {
1060 uint8_t layer = biton32(state);
1061
1062 ergodox_board_led_off();
1063 ergodox_right_led_1_off();
1064 ergodox_right_led_2_off();
1065 ergodox_right_led_3_off();
1066
1067 if (layer == _ARROWS_MAC || layer == _ARROWS_WINDOWS) {
1068 ergodox_right_led_1_on();
1069 } else if (layer == _SYMBOLS) {
1070 ergodox_right_led_2_on();
1071 } else if (layer == _NUMPAD) {
1072 ergodox_right_led_1_on();
1073 ergodox_right_led_2_on();
1074 } else if (layer == _WM_MAC || layer == _WM_WINDOWS) {
1075 ergodox_right_led_2_on();
1076 ergodox_right_led_3_on();
1077 } else if (layer == _MISC) {
1078 ergodox_right_led_1_on();
1079 ergodox_right_led_2_on();
1080 ergodox_right_led_3_on();
1081 } else if (layer == _WINDOWS) {
1082 ergodox_right_led_3_on();
1083 } else if (layer == _MAC) {
1084 /* do nothing */
1085 }
1086
1087 return state;
1088};
1089
1090void keyboard_post_init_user(void) {
1091 /* This layer is always on */
1092 layer_on(_COMMON);
1093
1094 /* Default to Mac layout */
1095 layer_on(_MAC);
1096}
diff --git a/keyboards/ergodox_ez/keymaps/nfriend/readme.md b/keyboards/ergodox_ez/keymaps/nfriend/readme.md
new file mode 100644
index 000000000..0a19e2d04
--- /dev/null
+++ b/keyboards/ergodox_ez/keymaps/nfriend/readme.md
@@ -0,0 +1,52 @@
1# [nfriend](https://gitlab.com/nfriend)'s ErgoDox EZ configuration
2
3![nfriend's ErgoDox EZ keymap](https://i.imgur.com/CMMmdBc.png)
4
5[View this keymap on
6keyboard-layout-editor.com.](http://www.keyboard-layout-editor.com/#/gists/01283b322a647c96ef75955a9b0bac68)
7
8Color legend:
9
10- **Black:** Primary layer.
11- **Blue:** Symbol layer. Accessed by holding either of the <kbd>to sym</kbd>
12 keys on either end of the keyboard.
13- **Green:** Numpad layer. Accessed by holding the <kbd>to numpad</kbd> key.
14- **Red:** Arrow layer. Accessed by holding either of the <kbd>to arrows</kbd>
15 thumb keys.
16- **Teal:** Window management layer. Accessed by holding either of the <kbd>to
17 WM</kbd> thumb keys.
18 - Note: this layer is not pictured on this keymap since is tightly coupled
19 to [Magnet](https://magnet.crowdcafe.com/).
20- **Yellow:** Miscellaneous layer. Includes LED control, layout toggling
21 (Colemak/Dvorak/QWERTY), platform toggling (Windows/Mac), and other
22 experimental features.
23 - Note: this layer is only partially pictured on this keymap
24
25## Caveats
26
27In its current state, this keymap is fairly Mac-centric. Some of the features
28implemented in the Mac layers have not yet been ported to the corresponding
29Windows layers.
30
31## Building
32
33To build this layout, open a command window in the root directory of this
34repository and run:
35
36```bash
37make ergodox_ez:nfriend
38```
39
40This will create a `.build/ergodox_ez_nfriend.hex` file which can be flashed
41using the [Teensy loader](https://www.pjrc.com/teensy/loader.html). After the
42`.hex` file has been loaded into Teensy, the keyboard can be reprogrammed by
43pressing the bottom-right key of the right half of the keyboard and the
44top-right key of the left half (the <kbd>RESET</kbd> key in the screenshot
45above).
46
47## Developing
48
49Use the template in `./template.c` to help create new layers quickly.
50
51This layout was originally based on [this EZ Configurator
52configuration](https://configure.ergodox-ez.com/ergodox-ez/layouts/x9MWL/latest/0).
diff --git a/keyboards/ergodox_ez/keymaps/nfriend/rules.mk b/keyboards/ergodox_ez/keymaps/nfriend/rules.mk
new file mode 100644
index 000000000..7e037f641
--- /dev/null
+++ b/keyboards/ergodox_ez/keymaps/nfriend/rules.mk
@@ -0,0 +1,8 @@
1# Set any rules.mk overrides for your specific keymap here.
2# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
3DEBOUNCE_TYPE = eager_pk
4LTO_ENABLE = yes
5COMMAND_ENABLE = no
6UNICODE_ENABLE = no
7UNICODEMAP_ENABLE = no
8DYNAMIC_MACRO_ENABLE = yes
diff --git a/keyboards/ergodox_ez/keymaps/nfriend/template.c b/keyboards/ergodox_ez/keymaps/nfriend/template.c
new file mode 100644
index 000000000..dc4294d59
--- /dev/null
+++ b/keyboards/ergodox_ez/keymaps/nfriend/template.c
@@ -0,0 +1,92 @@
1/* Copyright (C) 2020 Nathan Friend
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17/* clang-format off */
18
19[LAYER_NAME] = LAYOUT_ergodox(
20 /* Left hand */
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 /* Right hand */
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),