aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2020-10-17 11:46:57 -0700
committerGitHub <noreply@github.com>2020-10-17 11:46:57 -0700
commit855dd2d218ba875f1fb7bddfbce8bd260e96184e (patch)
tree3becfc91270b45aa061f529eb08bd1bf32fc0513 /layouts
parentaa1c1c386543a38d47331d17c414f81c8e11cb29 (diff)
downloadqmk_firmware-855dd2d218ba875f1fb7bddfbce8bd260e96184e.tar.gz
qmk_firmware-855dd2d218ba875f1fb7bddfbce8bd260e96184e.zip
[Keymap] Drashna Code Cleanup (#10656)
* Add Launchpad keymap Note: RGB and Audio won't work when using B pins for audio * Add support for rgb matrix on launchpad * Update config for launchpag * Disable wait on layer change * Update config for ErgoDox EZ * Fixup rgb light userspace code * Move Corne layout to community layouts folder * Update config for corne to support community layouts * Add license header to files * Minor cleanup of userspace config * Update Pimironi Trackball code * Increase debounce time on ergodox * Fix keymap handling * Enable wait for USB for moonlander * Update/add license headers * fix review issues
Diffstat (limited to 'layouts')
-rw-r--r--layouts/community/ergodox/drashna/config.h21
-rw-r--r--layouts/community/ergodox/drashna/keymap.c122
-rw-r--r--layouts/community/numpad_5x6/drashna/config.h16
-rw-r--r--layouts/community/numpad_5x6/drashna/keymap.c16
-rw-r--r--layouts/community/ortho_4x12/drashna/config.h16
-rw-r--r--layouts/community/ortho_4x12/drashna/keymap.c16
-rw-r--r--layouts/community/ortho_5x12/drashna/config.h16
-rw-r--r--layouts/community/ortho_5x12/drashna/keymap.c16
-rw-r--r--layouts/community/split_3x6_3/drashna/config.h74
-rw-r--r--layouts/community/split_3x6_3/drashna/glcdfont.c232
-rw-r--r--layouts/community/split_3x6_3/drashna/keymap.c232
-rw-r--r--layouts/community/split_3x6_3/drashna/rules.mk28
12 files changed, 745 insertions, 60 deletions
diff --git a/layouts/community/ergodox/drashna/config.h b/layouts/community/ergodox/drashna/config.h
index 8ad589f93..a595a93c4 100644
--- a/layouts/community/ergodox/drashna/config.h
+++ b/layouts/community/ergodox/drashna/config.h
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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
1#pragma once 17#pragma once
2 18
3#ifdef RGBLIGHT_ENABLE 19#ifdef RGBLIGHT_ENABLE
@@ -15,7 +31,7 @@
15#define PRODUCT DrashnaDox - Hacked ErgoDox EZ Hybrid Monstrosity 31#define PRODUCT DrashnaDox - Hacked ErgoDox EZ Hybrid Monstrosity
16 32
17#undef DEBOUNCE 33#undef DEBOUNCE
18#define DEBOUNCE 15 34#define DEBOUNCE 20
19 35
20#define TAPPING_TERM_PER_KEY 36#define TAPPING_TERM_PER_KEY
21 37
@@ -25,8 +41,7 @@
25# undef RGB_MATRIX_LED_PROCESS_LIMIT 41# undef RGB_MATRIX_LED_PROCESS_LIMIT
26# undef RGB_MATRIX_LED_FLUSH_LIMIT 42# undef RGB_MATRIX_LED_FLUSH_LIMIT
27# if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE) 43# if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE)
28# define RGBLIGHT_LIMIT_VAL 175 44# define RGBLIGHT_LIMIT_VAL 100
29# define RGB_MATRIX_MAXIMUM_BRIGHTNESS (RGBLIGHT_LIMIT_VAL + 25)
30# undef RGBLIGHT_SLEEP 45# undef RGBLIGHT_SLEEP
31# endif 46# endif
32#endif 47#endif
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c
index 8f5aaf6cd..5f1c0c8a0 100644
--- a/layouts/community/ergodox/drashna/keymap.c
+++ b/layouts/community/ergodox/drashna/keymap.c
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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
1#include "drashna.h" 17#include "drashna.h"
2 18
3#ifdef UNICODEMAP_ENABLE 19#ifdef UNICODEMAP_ENABLE
@@ -6,9 +22,6 @@
6#ifndef UNICODE_ENABLE 22#ifndef UNICODE_ENABLE
7# define UC(x) KC_NO 23# define UC(x) KC_NO
8#endif 24#endif
9#ifdef RGBLIGHT_ENABLE
10extern rgblight_config_t rgblight_config;
11#endif
12 25
13enum more_custom_keycodes { 26enum more_custom_keycodes {
14 KC_SWAP_NUM = NEW_SAFE_RANGE, 27 KC_SWAP_NUM = NEW_SAFE_RANGE,
@@ -315,8 +328,21 @@ void keyboard_post_init_keymap(void) {
315void shutdown_keymap(void) { 328void shutdown_keymap(void) {
316 trackball_set_rgbw(RGB_RED, 0x00); 329 trackball_set_rgbw(RGB_RED, 0x00);
317} 330}
331
332static bool mouse_button_one, trackball_button_one;
333
334void trackball_check_click(bool pressed, report_mouse_t* mouse) {
335 if (mouse_button_one | pressed) {
336 mouse->buttons |= MOUSE_BTN1;
337 } else {
338 mouse->buttons &= ~MOUSE_BTN1;
339 }
340 trackball_button_one = pressed;
341}
318#endif 342#endif
319 343
344
345
320bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { 346bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
321 switch (keycode) { 347 switch (keycode) {
322 case KC_1: 348 case KC_1:
@@ -358,33 +384,20 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
358 } 384 }
359 run_trackball_cleanup(); 385 run_trackball_cleanup();
360 break; 386 break;
361#if !defined(MOUSEKEY_ENABLE) && defined(POINTING_DEVICE_ENABLE) 387#if !defined(MOUSEKEY_ENABLE)
362 case KC_BTN1 ... KC_BTN3: 388 case KC_MS_BTN1:
363 { 389 mouse_button_one = record->event.pressed;
364 report_mouse_t currentReport = pointing_device_get_report(); 390 trackball_register_button(mouse_button_one | trackball_button_one, MOUSE_BTN1);
365 if (record->event.pressed) { 391 break;
366 currentReport.buttons |= (1 << (keycode - KC_BTN1)); // this is defined in report.h 392 case KC_MS_BTN2:
367 } else { 393 trackball_register_button(record->event.pressed, MOUSE_BTN2);
368 currentReport.buttons &= ~(1 << (keycode - KC_BTN1)); 394 break;
369 } 395 case KC_MS_BTN3:
370 pointing_device_set_report(currentReport); 396 trackball_register_button(record->event.pressed, MOUSE_BTN3);
371 pointing_device_send(); 397 break;
372 break;
373 }
374# endif 398# endif
375#endif 399#endif
376 } 400 }
377 // switch (keycode) {
378 // case KC_P00:
379 // if (!record->event.pressed) {
380 // register_code(KC_KP_0);
381 // unregister_code(KC_KP_0);
382 // register_code(KC_KP_0);
383 // unregister_code(KC_KP_0);
384 // }
385 // return false;
386 // break;
387 //}
388 return true; 401 return true;
389} 402}
390 403
@@ -457,7 +470,8 @@ void rgb_matrix_indicators_user(void) {
457 if (userspace_config.rgb_layer_change) 470 if (userspace_config.rgb_layer_change)
458# endif 471# endif
459 { 472 {
460 switch (get_highest_layer(layer_state)) { 473 bool mods_enabled = IS_LAYER_ON(_MODS);
474 switch (get_highest_layer(layer_state|default_layer_state)) {
461 case _GAMEPAD: 475 case _GAMEPAD:
462 rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 476 rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
463 break; 477 break;
@@ -473,36 +487,30 @@ void rgb_matrix_indicators_user(void) {
473 case _ADJUST: 487 case _ADJUST:
474 rgb_matrix_layer_helper(HSV_RED, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 488 rgb_matrix_layer_helper(HSV_RED, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
475 break; 489 break;
476 default: { 490 case _QWERTY:
477 bool mods_enabled = IS_LAYER_ON(_MODS); 491 rgb_matrix_layer_helper(HSV_CYAN, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
478 switch (get_highest_layer(default_layer_state)) { 492 break;
479 case _QWERTY: 493 case _COLEMAK:
480 rgb_matrix_layer_helper(HSV_CYAN, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 494 rgb_matrix_layer_helper(HSV_MAGENTA, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
481 break; 495 break;
482 case _COLEMAK: 496 case _DVORAK:
483 rgb_matrix_layer_helper(HSV_MAGENTA, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 497 rgb_matrix_layer_helper(HSV_SPRINGGREEN, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
484 break; 498 break;
485 case _DVORAK: 499 case _WORKMAN:
486 rgb_matrix_layer_helper(HSV_SPRINGGREEN, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 500 rgb_matrix_layer_helper(HSV_GOLDENROD, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
487 break; 501 break;
488 case _WORKMAN: 502 case _NORMAN:
489 rgb_matrix_layer_helper(HSV_GOLDENROD, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 503 rgb_matrix_layer_helper(HSV_CORAL, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
490 break; 504 break;
491 case _NORMAN: 505 case _MALTRON:
492 rgb_matrix_layer_helper(HSV_CORAL, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 506 rgb_matrix_layer_helper(HSV_YELLOW, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
493 break; 507 break;
494 case _MALTRON: 508 case _EUCALYN:
495 rgb_matrix_layer_helper(HSV_YELLOW, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 509 rgb_matrix_layer_helper(HSV_PINK, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
496 break; 510 break;
497 case _EUCALYN: 511 case _CARPLAX:
498 rgb_matrix_layer_helper(HSV_PINK, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 512 rgb_matrix_layer_helper(HSV_BLUE, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
499 break;
500 case _CARPLAX:
501 rgb_matrix_layer_helper(HSV_BLUE, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
502 break;
503 }
504 break; 513 break;
505 }
506 } 514 }
507 } 515 }
508} 516}
diff --git a/layouts/community/numpad_5x6/drashna/config.h b/layouts/community/numpad_5x6/drashna/config.h
index 29045148e..97c1170d7 100644
--- a/layouts/community/numpad_5x6/drashna/config.h
+++ b/layouts/community/numpad_5x6/drashna/config.h
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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
1#pragma once 17#pragma once
2 18
3// #define B6_AUDIO 19// #define B6_AUDIO
diff --git a/layouts/community/numpad_5x6/drashna/keymap.c b/layouts/community/numpad_5x6/drashna/keymap.c
index 3d325a4c1..5c87ebf76 100644
--- a/layouts/community/numpad_5x6/drashna/keymap.c
+++ b/layouts/community/numpad_5x6/drashna/keymap.c
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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
1#include "drashna.h" 17#include "drashna.h"
2 18
3#define F2_MCRO LT(_GAMEPAD, KC_F2) 19#define F2_MCRO LT(_GAMEPAD, KC_F2)
diff --git a/layouts/community/ortho_4x12/drashna/config.h b/layouts/community/ortho_4x12/drashna/config.h
index 5342549e5..6a99fcda0 100644
--- a/layouts/community/ortho_4x12/drashna/config.h
+++ b/layouts/community/ortho_4x12/drashna/config.h
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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
1#pragma once 17#pragma once
2 18
3#if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM) 19#if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c
index d2957d8fd..8070a7d35 100644
--- a/layouts/community/ortho_4x12/drashna/keymap.c
+++ b/layouts/community/ortho_4x12/drashna/keymap.c
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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
1#include "drashna.h" 17#include "drashna.h"
2 18
3#ifdef RGBLIGHT_ENABLE 19#ifdef RGBLIGHT_ENABLE
diff --git a/layouts/community/ortho_5x12/drashna/config.h b/layouts/community/ortho_5x12/drashna/config.h
index 7504338ff..76bd642a3 100644
--- a/layouts/community/ortho_5x12/drashna/config.h
+++ b/layouts/community/ortho_5x12/drashna/config.h
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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
1#pragma once 17#pragma once
2 18
3/* ws2812 RGB LED */ 19/* ws2812 RGB LED */
diff --git a/layouts/community/ortho_5x12/drashna/keymap.c b/layouts/community/ortho_5x12/drashna/keymap.c
index 0ee9dfb10..98c349b2e 100644
--- a/layouts/community/ortho_5x12/drashna/keymap.c
+++ b/layouts/community/ortho_5x12/drashna/keymap.c
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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
1#include "drashna.h" 17#include "drashna.h"
2 18
3/* 19/*
diff --git a/layouts/community/split_3x6_3/drashna/config.h b/layouts/community/split_3x6_3/drashna/config.h
new file mode 100644
index 000000000..7db51fb6e
--- /dev/null
+++ b/layouts/community/split_3x6_3/drashna/config.h
@@ -0,0 +1,74 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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#pragma once
18
19/* Select hand configuration */
20
21// #define MASTER_LEFT
22// #define MASTER_RIGHT
23#define EE_HANDS
24
25#undef USE_I2C
26#undef SSD1306OLED
27
28#define USE_SERIAL_PD2
29
30// #define TAPPING_FORCE_HOLD
31// #define TAPPING_TERM 100
32
33#ifdef RGBLIGHT_ENABLE
34# undef RGBLED_NUM
35# define RGBLED_NUM 27
36
37# define RGBLIGHT_HUE_STEP 8
38# define RGBLIGHT_SAT_STEP 8
39# define RGBLIGHT_VAL_STEP 5
40# define RGBLIGHT_LIMIT_VAL 120
41#endif
42
43#ifdef RGB_MATRIX_ENABLE
44# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
45// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
46// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
47# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
48// # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
49// # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
50# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
51# define RGB_MATRIX_HUE_STEP 8
52# define RGB_MATRIX_SAT_STEP 8
53# define RGB_MATRIX_VAL_STEP 5
54# define RGB_MATRIX_SPD_STEP 10
55#endif
56
57#ifdef AUDIO_ENABLE
58# define B6_AUDIO
59# define NO_MUSIC_MODE
60#endif
61
62#ifdef HAPTIC_ENABLE
63# define SOLENOID_PIN B7
64#endif
65
66#undef PRODUCT
67#define PRODUCT Drashna Hacked Corne Keyboard
68
69#define OLED_FONT_H "layouts/community/split_3x6_3/drashna/glcdfont.c"
70// #define OLED_FONT_WIDTH 5
71// #define OLED_FONT_HEIGHT 7
72
73#define OLED_DISABLE_TIMEOUT
74#define TAPPING_TERM_PER_KEY
diff --git a/layouts/community/split_3x6_3/drashna/glcdfont.c b/layouts/community/split_3x6_3/drashna/glcdfont.c
new file mode 100644
index 000000000..10ce3b345
--- /dev/null
+++ b/layouts/community/split_3x6_3/drashna/glcdfont.c
@@ -0,0 +1,232 @@
1#include "progmem.h"
2
3// Corne 8x6 font with QMK Firmware Logo
4// Online editor: https://helixfonteditor.netlify.com/
5
6// clang-format off
7const unsigned char font[] PROGMEM = {
80x00, 0x00, 0x00, 0x00, 0x00, 0x00,
90x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
100x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
110x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
120x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
130x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
140x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
150x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
160xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
170x00, 0x18, 0x24, 0x18, 0x00, 0x00,
180xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
190x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
200x26, 0x29, 0x79, 0x29, 0x26, 0x00,
210x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
220x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
230x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
240x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
250x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
260x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
270x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
280x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
290x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
300x60, 0x60, 0x60, 0x60, 0x60, 0x00,
310x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
320x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
330x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
340x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
350x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
360x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
370x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
380x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
390x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
400x00, 0x00, 0x00, 0x00, 0x00, 0x00,
410x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
420x00, 0x07, 0x00, 0x07, 0x00, 0x00,
430x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
440x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
450x23, 0x13, 0x08, 0x64, 0x62, 0x00,
460x36, 0x49, 0x56, 0x20, 0x50, 0x00,
470x00, 0x08, 0x07, 0x03, 0x00, 0x00,
480x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
490x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
500x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
510x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
520x00, 0x80, 0x70, 0x30, 0x00, 0x00,
530x08, 0x08, 0x08, 0x08, 0x08, 0x00,
540x00, 0x00, 0x60, 0x60, 0x00, 0x00,
550x20, 0x10, 0x08, 0x04, 0x02, 0x00,
560x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
570x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
580x72, 0x49, 0x49, 0x49, 0x46, 0x00,
590x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
600x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
610x27, 0x45, 0x45, 0x45, 0x39, 0x00,
620x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
630x41, 0x21, 0x11, 0x09, 0x07, 0x00,
640x36, 0x49, 0x49, 0x49, 0x36, 0x00,
650x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
660x00, 0x00, 0x14, 0x00, 0x00, 0x00,
670x00, 0x40, 0x34, 0x00, 0x00, 0x00,
680x00, 0x08, 0x14, 0x22, 0x41, 0x00,
690x14, 0x14, 0x14, 0x14, 0x14, 0x00,
700x00, 0x41, 0x22, 0x14, 0x08, 0x00,
710x02, 0x01, 0x59, 0x09, 0x06, 0x00,
720x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
730x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
740x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
750x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
760x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
770x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
780x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
790x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
800x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
810x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
820x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
830x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
840x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
850x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
860x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
870x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
880x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
890x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
900x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
910x26, 0x49, 0x49, 0x49, 0x32, 0x00,
920x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
930x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
940x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
950x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
960x63, 0x14, 0x08, 0x14, 0x63, 0x00,
970x03, 0x04, 0x78, 0x04, 0x03, 0x00,
980x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
990x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
1000x02, 0x04, 0x08, 0x10, 0x20, 0x00,
1010x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
1020x04, 0x02, 0x01, 0x02, 0x04, 0x00,
1030x40, 0x40, 0x40, 0x40, 0x40, 0x00,
1040x00, 0x03, 0x07, 0x08, 0x00, 0x00,
1050x20, 0x54, 0x54, 0x78, 0x40, 0x00,
1060x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
1070x38, 0x44, 0x44, 0x44, 0x28, 0x00,
1080x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
1090x38, 0x54, 0x54, 0x54, 0x18, 0x00,
1100x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
1110x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
1120x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
1130x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
1140x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
1150x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
1160x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
1170x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
1180x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
1190x38, 0x44, 0x44, 0x44, 0x38, 0x00,
1200x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
1210x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
1220x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
1230x48, 0x54, 0x54, 0x54, 0x24, 0x00,
1240x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
1250x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
1260x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
1270x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
1280x44, 0x28, 0x10, 0x28, 0x44, 0x00,
1290x4C, 0x90, 0x90, 0x90, 0x7C, 0x00,
1300x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
1310x00, 0x08, 0x36, 0x41, 0x00, 0x00,
1320x00, 0x00, 0x77, 0x00, 0x00, 0x00,
1330x00, 0x41, 0x36, 0x08, 0x00, 0x00,
1340x02, 0x01, 0x02, 0x04, 0x02, 0x00,
1350x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
1360x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1370x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1380x00, 0x00, 0x00, 0x00, 0xC0, 0xE0,
1390xF0, 0xF8, 0xF8, 0x18, 0x00, 0xC0,
1400xF0, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF,
1410xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x00,
1420x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1430x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0,
1440xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0,
1450xC0, 0x80, 0x00, 0x00, 0x00, 0x00,
1460x80, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0,
1470xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80,
1480x00, 0x00, 0x00, 0xE0, 0xE0, 0xC0,
1490xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0x00,
1500x00, 0xE0, 0xE0, 0xC0, 0xC0, 0xE0,
1510xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80,
1520x00, 0x00, 0x00, 0x00, 0x80, 0xC0,
1530xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0,
1540xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00,
1550x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1560x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1570xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC,
1580xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00,
1590x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E,
1600x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00,
1610x00, 0x80, 0xC0, 0xE0, 0x7E, 0x5B,
1620x4F, 0x5B, 0xFE, 0xC0, 0x00, 0x00,
1630xC0, 0x00, 0xDC, 0xD7, 0xDE, 0xDE,
1640xDE, 0xD7, 0xDC, 0x00, 0xC0, 0x00,
1650x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1660x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1670x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1680x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1690x00, 0x00, 0x00, 0xF8, 0xFC, 0xFE,
1700xFF, 0xE0, 0x00, 0xFF, 0xFF, 0xFF,
1710xFF, 0xFF, 0xFF, 0x80, 0xFF, 0xFF,
1720xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
1730xFF, 0x1F, 0x07, 0x01, 0x00, 0x00,
1740x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1750x00, 0xFF, 0xFF, 0xFF, 0x81, 0x00,
1760x00, 0x00, 0x00, 0x00, 0x00, 0x81,
1770xC3, 0xC3, 0xC3, 0x00, 0x00, 0xFF,
1780xFF, 0xFF, 0x81, 0x00, 0x00, 0x00,
1790x00, 0x00, 0x00, 0x81, 0xFF, 0xFF,
1800xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF,
1810x01, 0x00, 0x00, 0x00, 0x00, 0x00,
1820x00, 0xFF, 0xFF, 0xFF, 0x01, 0x00,
1830x00, 0x00, 0x00, 0x01, 0xFF, 0xFF,
1840xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF,
1850x9D, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
1860x1C, 0x9D, 0xDF, 0xDF, 0xDF, 0x00,
1870x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1880x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1890x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
1900x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00,
1910x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F,
1920x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00,
1930x30, 0x7B, 0x7F, 0x78, 0x30, 0x20,
1940x20, 0x30, 0x78, 0x7F, 0x3B, 0x00,
1950x03, 0x00, 0x0F, 0x7F, 0x0F, 0x0F,
1960x0F, 0x7F, 0x0F, 0x00, 0x03, 0x00,
1970x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1980x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1990x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2000x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2010x00, 0x00, 0x00, 0x03, 0x0F, 0x1F,
2020x3F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F,
2030x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x3F,
2040x3F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
2050x7F, 0x7C, 0x78, 0x78, 0x38, 0x1C,
2060x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
2070x00, 0x00, 0x01, 0x03, 0x07, 0x07,
2080x07, 0x07, 0x07, 0x07, 0x07, 0x07,
2090x03, 0x01, 0x00, 0x00, 0x00, 0x00,
2100x01, 0x03, 0x07, 0x07, 0x07, 0x07,
2110x07, 0x07, 0x07, 0x07, 0x03, 0x01,
2120x00, 0x00, 0x00, 0x07, 0x07, 0x07,
2130x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2140x00, 0x07, 0x07, 0x07, 0x00, 0x00,
2150x00, 0x00, 0x00, 0x00, 0x07, 0x07,
2160x07, 0x00, 0x00, 0x00, 0x01, 0x03,
2170x07, 0x07, 0x07, 0x07, 0x07, 0x07,
2180x07, 0x07, 0x03, 0x01, 0x00, 0x00,
2190x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2200x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2210x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2220x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2230x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2240x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2250x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2260x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2270x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2280x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2290x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2300x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2310x00, 0x00, 0x00, 0x00, 0x00, 0x00,
232};
diff --git a/layouts/community/split_3x6_3/drashna/keymap.c b/layouts/community/split_3x6_3/drashna/keymap.c
new file mode 100644
index 000000000..30e3958fe
--- /dev/null
+++ b/layouts/community/split_3x6_3/drashna/keymap.c
@@ -0,0 +1,232 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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 2 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 "drashna.h"
18
19extern uint8_t is_master;
20
21#ifdef RGBLIGHT_ENABLE
22// Following line allows macro to read current RGB settings
23extern rgblight_config_t rgblight_config;
24#endif
25
26enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE };
27
28/*
29 * The `LAYOUT_crkbd_base` macro is a template to allow the use of identical
30 * modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
31 * that there is no need to set them up for each layout, and modify all of
32 * them if I want to change them. This helps to keep consistency and ease
33 * of use. K## is a placeholder to pass through the individual keycodes
34 */
35
36#define LAYOUT_split_3x6_3_base( \
37 K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
38 K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
39 K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
40 ) \
41 LAYOUT_split_3x6_3_wrapper( \
42 KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_MINS, \
43 ALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
44 OS_LSFT, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
45 KC_GRV, KC_SPC, BK_LWER, DL_RAIS, KC_ENT, OS_RGUI \
46 )
47#define LAYOUT_split_3x6_3_base_wrapper(...) LAYOUT_split_3x6_3_base(__VA_ARGS__)
48
49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 [_QWERTY] = LAYOUT_split_3x6_3_base_wrapper(
51 _________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
52 _________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
53 _________________QWERTY_L3_________________, _________________QWERTY_R3_________________
54 ),
55
56 [_COLEMAK] = LAYOUT_split_3x6_3_base_wrapper(
57 _________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
58 _________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
59 _________________COLEMAK_L3________________, _________________COLEMAK_R3________________
60 ),
61
62 [_DVORAK] = LAYOUT_split_3x6_3_base_wrapper(
63 _________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
64 _________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
65 _________________DVORAK_L3_________________, _________________DVORAK_R3_________________
66 ),
67
68 [_WORKMAN] = LAYOUT_split_3x6_3_base_wrapper(
69 _________________WORKMAN_L1________________, _________________WORKMAN_R1________________,
70 _________________WORKMAN_L2________________, _________________WORKMAN_R2________________,
71 _________________WORKMAN_L3________________, _________________WORKMAN_R3________________
72 ),
73
74 [_NORMAN] = LAYOUT_split_3x6_3_base_wrapper(
75 _________________NORMAN_L1_________________, _________________NORMAN_L1_________________,
76 _________________NORMAN_L2_________________, _________________NORMAN_R2_________________,
77 _________________NORMAN_L3_________________, _________________NORMAN_R3_________________
78 ),
79
80 [_MALTRON] = LAYOUT_split_3x6_3_base_wrapper(
81 _________________MALTRON_L1________________, _________________MALTRON_R1________________,
82 _________________MALTRON_L2________________, _________________MALTRON_R2________________,
83 _________________MALTRON_L3________________, _________________MALTRON_R3________________
84 ),
85
86 [_EUCALYN] = LAYOUT_split_3x6_3_base_wrapper(
87 _________________EUCALYN_L1________________, _________________EUCALYN_R1________________,
88 _________________EUCALYN_L2________________, _________________EUCALYN_R2________________,
89 _________________EUCALYN_L3________________, _________________EUCALYN_R3________________
90 ),
91
92 [_CARPLAX] = LAYOUT_split_3x6_3_base_wrapper(
93 _____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________,
94 _____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________,
95 _____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________
96 ),
97
98 [_MODS] = LAYOUT_split_3x6_3_wrapper(
99 _______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
100 _______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
101 KC_LSFT, ___________________BLANK___________________, ___________________BLANK___________________, KC_RSFT,
102 _______, _______, _______, _______, _______, _______
103 ),
104
105 [_LOWER] = LAYOUT_split_3x6_3_wrapper(
106 KC_F11, _________________LOWER_L1__________________, _________________LOWER_R1__________________, KC_F11,
107 KC_F12, _________________LOWER_L2__________________, _________________LOWER_R2__________________, KC_PIPE,
108 _______, _________________LOWER_L3__________________, _________________LOWER_R3__________________, _______,
109 _______, _______, _______, _______, _______, _______
110 ),
111
112 [_RAISE] = LAYOUT_split_3x6_3_wrapper( \
113 _______, _________________RAISE_L1__________________, _________________RAISE_R1__________________, _______,
114 _______, _________________RAISE_L2__________________, _________________RAISE_R2__________________, KC_BSLS,
115 _______, _________________RAISE_L3__________________, _________________RAISE_R3__________________, _______,
116 _______, _______, _______, _______, _______, _______
117 ),
118
119 [_ADJUST] = LAYOUT_split_3x6_3_wrapper( \
120 KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RESET,
121 VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EEP_RST,
122 MG_NKRO, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, RGB_IDL,
123 HPT_TOG, KC_NUKE, _______, _______, TG_MODS, HPT_FBK
124 )
125};
126// clang-format on
127
128bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
129 if (record->event.pressed) {
130#ifndef SPLIT_KEYBOARD
131 if (keycode == RESET && !is_master) {
132 return false;
133 }
134#endif
135 }
136 return true;
137}
138
139#ifdef OLED_DRIVER_ENABLE
140oled_rotation_t oled_init_user(oled_rotation_t rotation) {
141# ifndef SPLIT_KEYBOARD
142 if (is_master) {
143# endif
144 return OLED_ROTATION_270;
145# ifndef SPLIT_KEYBOARD
146 } else {
147 return rotation;
148 }
149# endif
150}
151#endif
152
153uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
154 switch (keycode) {
155 case ALT_T(KC_A):
156 return TAPPING_TERM + 100;
157 default:
158 return TAPPING_TERM;
159 }
160}
161
162#ifdef RGB_MATRIX_ENABLE
163
164void suspend_power_down_keymap(void) { rgb_matrix_set_suspend_state(true); }
165
166void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); }
167
168void check_default_layer(uint8_t mode, uint8_t type) {
169 switch (get_highest_layer(default_layer_state)) {
170 case _QWERTY:
171 rgb_matrix_layer_helper(HSV_CYAN, mode, rgb_matrix_config.speed, type);
172 break;
173 case _COLEMAK:
174 rgb_matrix_layer_helper(HSV_MAGENTA, mode, rgb_matrix_config.speed, type);
175 break;
176 case _DVORAK:
177 rgb_matrix_layer_helper(HSV_SPRINGGREEN, mode, rgb_matrix_config.speed, type);
178 break;
179 case _WORKMAN:
180 rgb_matrix_layer_helper(HSV_GOLDENROD, mode, rgb_matrix_config.speed, type);
181 break;
182 case _NORMAN:
183 rgb_matrix_layer_helper(HSV_CORAL, mode, rgb_matrix_config.speed, type);
184 break;
185 case _MALTRON:
186 rgb_matrix_layer_helper(HSV_YELLOW, mode, rgb_matrix_config.speed, type);
187 break;
188 case _EUCALYN:
189 rgb_matrix_layer_helper(HSV_PINK, mode, rgb_matrix_config.speed, type);
190 break;
191 case _CARPLAX:
192 rgb_matrix_layer_helper(HSV_BLUE, mode, rgb_matrix_config.speed, type);
193 break;
194 }
195}
196
197void rgb_matrix_indicators_user(void) {
198 if (userspace_config.rgb_layer_change &&
199# ifdef RGB_DISABLE_WHEN_USB_SUSPENDED
200 !g_suspend_state &&
201# endif
202# if defined(RGBLIGHT_ENABLE)
203 (!rgblight_config.enable && rgb_matrix_config.enable)
204# else
205 rgb_matrix_config.enable
206# endif
207 ) {
208 switch (get_highest_layer(layer_state)) {
209 case _GAMEPAD:
210 rgb_matrix_layer_helper(HSV_ORANGE, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
211 break;
212 case _DIABLO:
213 rgb_matrix_layer_helper(HSV_RED, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
214 break;
215 case _RAISE:
216 rgb_matrix_layer_helper(HSV_YELLOW, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
217 break;
218 case _LOWER:
219 rgb_matrix_layer_helper(HSV_GREEN, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
220 break;
221 case _ADJUST:
222 rgb_matrix_layer_helper(HSV_RED, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
223 break;
224 default: {
225 check_default_layer(IS_LAYER_ON(_MODS), LED_FLAG_UNDERGLOW);
226 break;
227 }
228 }
229 check_default_layer(0, LED_FLAG_MODIFIER);
230 }
231}
232#endif
diff --git a/layouts/community/split_3x6_3/drashna/rules.mk b/layouts/community/split_3x6_3/drashna/rules.mk
new file mode 100644
index 000000000..6ac1554b3
--- /dev/null
+++ b/layouts/community/split_3x6_3/drashna/rules.mk
@@ -0,0 +1,28 @@
1
2# Build Options
3# change to "no" to disable the options, or define them in the Makefile in
4# the appropriate keymap folder that will get included automatically
5#
6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
7MOUSEKEY_ENABLE = no # Mouse keys(+4700)
8EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
9CONSOLE_ENABLE = no # Console for debug(+400)
10COMMAND_ENABLE = no # Commands for debug and configuration
11NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
13MIDI_ENABLE = no # MIDI controls
14AUDIO_ENABLE = no # Audio output on port C6
15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
22
23ifeq ($(strip $(KEYBOARD)), crkbd/rev1)
24 OLED_DRIVER_ENABLE = yes
25 RGB_MATRIX_ENABLE = WS2812
26 HAPTIC_ENABLE = SOLENOID
27 BOOTLOADER = qmk-dfu
28endif