aboutsummaryrefslogtreecommitdiff
path: root/layouts/community
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/community')
-rw-r--r--layouts/community/ergodox/drashna/config.h15
-rw-r--r--layouts/community/ergodox/drashna/keymap.c41
-rw-r--r--layouts/community/ergodox/drashna/rules.mk17
-rw-r--r--layouts/community/ergodox/drashna_glow/config.h9
-rw-r--r--layouts/community/ergodox/drashna_glow/keymap.c2
-rw-r--r--layouts/community/ergodox/drashna_glow/rules.mk13
-rw-r--r--layouts/community/ortho_4x12/drashna/keymap.c13
-rw-r--r--layouts/community/ortho_4x12/drashna/rules.mk20
-rw-r--r--layouts/community/ortho_5x12/drashna/rules.mk1
9 files changed, 61 insertions, 70 deletions
diff --git a/layouts/community/ergodox/drashna/config.h b/layouts/community/ergodox/drashna/config.h
index 0091ebcde..ce25b0646 100644
--- a/layouts/community/ergodox/drashna/config.h
+++ b/layouts/community/ergodox/drashna/config.h
@@ -6,10 +6,13 @@
6 6
7# define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 7# define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3
8# define RGBLIGHT_EFFECT_SNAKE_LENGTH 3 8# define RGBLIGHT_EFFECT_SNAKE_LENGTH 3
9# ifdef RGB_MATRIX_ENABLE
10# define RGBLIGHT_DISABLE_KEYCODES
11# endif
9#endif // RGBLIGHT_ENABLE 12#endif // RGBLIGHT_ENABLE
10 13
11#undef PRODUCT 14#undef PRODUCT
12#define PRODUCT DrashnaDox - Hacked ErgoDox EZ Shine 15#define PRODUCT DrashnaDox - Hacked ErgoDox EZ Hybrid Monstrosity
13 16
14#undef DEBOUNCE 17#undef DEBOUNCE
15#define DEBOUNCE 30 18#define DEBOUNCE 30
@@ -17,3 +20,13 @@
17#define TAPPING_TERM_PER_KEY 20#define TAPPING_TERM_PER_KEY
18 21
19#define ERGODOX_LED_30 22#define ERGODOX_LED_30
23
24#ifdef RGB_MATRIX_ENABLE
25# undef RGB_MATRIX_LED_PROCESS_LIMIT
26# undef RGB_MATRIX_LED_FLUSH_LIMIT
27# if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE)
28# define RGBLIGHT_LIMIT_VAL 175
29# define RGB_MATRIX_MAXIMUM_BRIGHTNESS (RGBLIGHT_LIMIT_VAL + 25)
30# undef RGBLIGHT_SLEEP
31# endif
32#endif
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c
index 8308bfdaa..69066a47c 100644
--- a/layouts/community/ergodox/drashna/keymap.c
+++ b/layouts/community/ergodox/drashna/keymap.c
@@ -280,7 +280,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
280 ), 280 ),
281 281
282 [_ADJUST] = LAYOUT_ergodox_pretty_wrapper( 282 [_ADJUST] = LAYOUT_ergodox_pretty_wrapper(
283 KC_MAKE, _______, _______, _______, _______, _______, _______, KC_NUKE, _________________ADJUST_R1_________________, KC_RST, 283 KC_MAKE, _______, _______, _______, _______, _______, UC_MOD, KC_NUKE, _________________ADJUST_R1_________________, KC_RST,
284 VRSN, _________________ADJUST_L1_________________, _______, _______, _______, _______, _______, _______, _______, EEP_RST, 284 VRSN, _________________ADJUST_L1_________________, _______, _______, _______, _______, _______, _______, _______, EEP_RST,
285 _______, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, RGB_IDL, 285 _______, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, RGB_IDL,
286 _______, _________________ADJUST_L3_________________, _______, _______, _________________ADJUST_R3_________________, TG(_MODS), 286 _______, _________________ADJUST_L3_________________, _______, _______, _________________ADJUST_R3_________________, TG(_MODS),
@@ -382,31 +382,32 @@ void suspend_power_down_keymap(void) { rgb_matrix_set_suspend_state(true); }
382void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); } 382void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); }
383 383
384void rgb_matrix_indicators_user(void) { 384void rgb_matrix_indicators_user(void) {
385 if (userspace_config.rgb_layer_change && 385 if (g_suspend_state || !rgb_matrix_config.enable) return;
386# ifdef RGB_DISABLE_WHEN_USB_SUSPENDED 386
387 !g_suspend_state && 387 if (layer_state_is(_GAMEPAD)) {
388# endif 388 rgb_matrix_set_color(32, 0x00, 0xFF, 0x00); // Q
389 rgb_matrix_set_color(31, 0x00, 0xFF, 0xFF); // W
390 rgb_matrix_set_color(30, 0xFF, 0x00, 0x00); // E
391 rgb_matrix_set_color(29, 0xFF, 0x80, 0x00); // R
392 rgb_matrix_set_color(37, 0x00, 0xFF, 0xFF); // A
393 rgb_matrix_set_color(36, 0x00, 0xFF, 0xFF); // S
394 rgb_matrix_set_color(35, 0x00, 0xFF, 0xFF); // D
395 rgb_matrix_set_color(34, 0x7A, 0x00, 0xFF); // F
396
397 rgb_matrix_set_color(userspace_config.swapped_numbers ? 27 : 26, 0xFF, 0xFF, 0xFF); // 1
398 rgb_matrix_set_color(userspace_config.swapped_numbers ? 26 : 27, 0x00, 0xFF, 0x00); // 2
399 rgb_matrix_set_color(25, 0x7A, 0x00, 0xFF); // 3
400 }
401
389# if defined(RGBLIGHT_ENABLE) 402# if defined(RGBLIGHT_ENABLE)
390 (!rgblight_config.enable && rgb_matrix_config.enable) 403 if (!userspace_config.rgb_layer_change)
391# else 404# else
392 rgb_matrix_config.enable 405 if (userspace_config.rgb_layer_change)
393# endif 406# endif
394 ) { 407 {
395 switch (get_highest_layer(layer_state)) { 408 switch (get_highest_layer(layer_state)) {
396 case _GAMEPAD: 409 case _GAMEPAD:
397 rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 410 rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
398 rgb_matrix_set_color(32, 0x00, 0xFF, 0x00); // Q
399 rgb_matrix_set_color(31, 0x00, 0xFF, 0xFF); // W
400 rgb_matrix_set_color(30, 0xFF, 0x00, 0x00); // E
401 rgb_matrix_set_color(29, 0xFF, 0x80, 0x00); // R
402 rgb_matrix_set_color(37, 0x00, 0xFF, 0xFF); // A
403 rgb_matrix_set_color(36, 0x00, 0xFF, 0xFF); // S
404 rgb_matrix_set_color(35, 0x00, 0xFF, 0xFF); // D
405 rgb_matrix_set_color(34, 0x7A, 0x00, 0xFF); // F
406
407 rgb_matrix_set_color(userspace_config.swapped_numbers ? 27 : 26, 0xFF, 0xFF, 0xFF); // 1
408 rgb_matrix_set_color(userspace_config.swapped_numbers ? 26 : 27, 0x00, 0xFF, 0x00); // 2
409 rgb_matrix_set_color(25, 0x7A, 0x00, 0xFF); // 3
410 break; 411 break;
411 case _DIABLO: 412 case _DIABLO:
412 rgb_matrix_layer_helper(HSV_RED, 1, rgb_matrix_config.speed * 8, LED_FLAG_MODIFIER); 413 rgb_matrix_layer_helper(HSV_RED, 1, rgb_matrix_config.speed * 8, LED_FLAG_MODIFIER);
diff --git a/layouts/community/ergodox/drashna/rules.mk b/layouts/community/ergodox/drashna/rules.mk
index 3aee59df6..78a3d1584 100644
--- a/layouts/community/ergodox/drashna/rules.mk
+++ b/layouts/community/ergodox/drashna/rules.mk
@@ -1,19 +1,20 @@
1TAP_DANCE_ENABLE = yes 1BOOTMAGIC_ENABLE = lite
2TAP_DANCE_ENABLE = no
2SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 3SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
3COMMAND_ENABLE = no # Commands for debug and configuration 4COMMAND_ENABLE = no # Commands for debug and configuration
5CONSOLE_ENABLE = no
4SPACE_CADET_ENABLE = no 6SPACE_CADET_ENABLE = no
7
5ifeq ($(strip $(KEYBOARD)), ergodox_ez) 8ifeq ($(strip $(KEYBOARD)), ergodox_ez)
6 RGBLIGHT_ENABLE = yes 9 RGBLIGHT_ENABLE = yes
7 RGB_MATRIX_ENABLE = no 10 RGB_MATRIX_ENABLE = yes
11 RGBLIGHT_TWINKLE = no
12 INDICATOR_LIGHTS = no
13 RGBLIGHT_STARTUP_ANIMATION = no
8endif 14endif
9CONSOLE_ENABLE = no
10BOOTMAGIC_ENABLE = yes
11 15
12UNICODE_ENABLE = yes 16UNICODE_ENABLE = yes
13UNICDOEMAP_ENABLE = no 17UNICDOEMAP_ENABLE = no
14 18
15RGBLIGHT_TWINKLE = no
16INDICATOR_LIGHTS = no
17RGBLIGHT_STARTUP_ANIMATION = yes
18 19
19DEBOUNCE_TYPE = eager_pr 20DEBOUNCE_TYPE = eager_pr
diff --git a/layouts/community/ergodox/drashna_glow/config.h b/layouts/community/ergodox/drashna_glow/config.h
deleted file mode 100644
index 6431cb4ff..000000000
--- a/layouts/community/ergodox/drashna_glow/config.h
+++ /dev/null
@@ -1,9 +0,0 @@
1#pragma once
2
3#include "../drashna/config.h"
4
5#undef PRODUCT
6#define PRODUCT DrashnaDox - Hacked ErgoDox EZ Glow
7
8#undef RGB_MATRIX_LED_PROCESS_LIMIT
9#undef RGB_MATRIX_LED_FLUSH_LIMIT
diff --git a/layouts/community/ergodox/drashna_glow/keymap.c b/layouts/community/ergodox/drashna_glow/keymap.c
deleted file mode 100644
index 7d4bdbec5..000000000
--- a/layouts/community/ergodox/drashna_glow/keymap.c
+++ /dev/null
@@ -1,2 +0,0 @@
1/* placeholder file */
2#include QMK_KEYBOARD_H
diff --git a/layouts/community/ergodox/drashna_glow/rules.mk b/layouts/community/ergodox/drashna_glow/rules.mk
deleted file mode 100644
index 45addc7c2..000000000
--- a/layouts/community/ergodox/drashna_glow/rules.mk
+++ /dev/null
@@ -1,13 +0,0 @@
1USER_NAME := drashna
2
3CORRECTED_LAYOUT := $(LAYOUTS_REPO)/$(LAYOUT)/drashna
4
5SRC += $(CORRECTED_LAYOUT)/keymap.c
6
7-include $(CORRECTED_LAYOUT)/rules.mk
8
9ifeq ($(strip $(KEYBOARD)), ergodox_ez)
10 RGBLIGHT_ENABLE = no
11 RGB_MATRIX_ENABLE = yes
12# TAP_DANCE_ENABLE = no
13endif
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c
index c3899cd03..d2957d8fd 100644
--- a/layouts/community/ortho_4x12/drashna/keymap.c
+++ b/layouts/community/ortho_4x12/drashna/keymap.c
@@ -224,16 +224,14 @@ void rgb_matrix_indicators_user(void) {
224 is_ez = true; 224 is_ez = true;
225# endif 225# endif
226 226
227 if (userspace_config.rgb_layer_change && 227 if (g_suspend_state || !rgb_matrix_config.enable) return;
228# ifdef RGB_DISABLE_WHEN_USB_SUSPENDED 228
229 !g_suspend_state &&
230# endif
231# if defined(RGBLIGHT_ENABLE) 229# if defined(RGBLIGHT_ENABLE)
232 (!rgblight_config.enable && rgb_matrix_config.enable) 230 if (!userspace_config.rgb_layer_change)
233# else 231# else
234 rgb_matrix_config.enable 232 if (userspace_config.rgb_layer_change)
235# endif 233# endif
236 ) { 234 {
237 switch (get_highest_layer(layer_state)) { 235 switch (get_highest_layer(layer_state)) {
238 case _GAMEPAD: 236 case _GAMEPAD:
239 rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER); 237 rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
@@ -297,6 +295,7 @@ void rgb_matrix_indicators_user(void) {
297 rgb_matrix_set_color(is_ez ? 41 : 42, 0xD9, 0xA5, 0x21); 295 rgb_matrix_set_color(is_ez ? 41 : 42, 0xD9, 0xA5, 0x21);
298 break; 296 break;
299 } 297 }
298
300 if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) { 299 if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) {
301 if (!layer_state_cmp(layer_state, _ADJUST)) { 300 if (!layer_state_cmp(layer_state, _ADJUST)) {
302 rgb_matrix_set_color(24, 0x00, 0xFF, 0x00); 301 rgb_matrix_set_color(24, 0x00, 0xFF, 0x00);
diff --git a/layouts/community/ortho_4x12/drashna/rules.mk b/layouts/community/ortho_4x12/drashna/rules.mk
index 38d0d4517..e4fe90534 100644
--- a/layouts/community/ortho_4x12/drashna/rules.mk
+++ b/layouts/community/ortho_4x12/drashna/rules.mk
@@ -2,7 +2,6 @@ BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
2MOUSEKEY_ENABLE = no # Mouse keys(+4700) 2MOUSEKEY_ENABLE = no # Mouse keys(+4700)
3EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 3EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
4TAP_DANCE_ENABLE = no 4TAP_DANCE_ENABLE = no
5AUDIO_ENABLE = yes
6SPACE_CADET_ENABLE = no 5SPACE_CADET_ENABLE = no
7NKRO_ENABLE = yes 6NKRO_ENABLE = yes
8 7
@@ -11,20 +10,22 @@ ifneq ($(strip $(KEYBOARD)), planck/rev6)
11 COMMAND_ENABLE = no 10 COMMAND_ENABLE = no
12 ifeq ($(strip $(LAYOUT_HAS_RGB)), yes) 11 ifeq ($(strip $(LAYOUT_HAS_RGB)), yes)
13 RGBLIGHT_ENABLE = yes 12 RGBLIGHT_ENABLE = yes
14 endif 13 INDICATOR_LIGHTS = yes
15 INDICATOR_LIGHTS = yes 14 RGBLIGHT_TWINKLE = yes
16 RGBLIGHT_TWINKLE = yes 15 RGBLIGHT_STARTUP_ANIMATION = yes
17 RGBLIGHT_STARTUP_ANIMATION = yes 16 endif
18else 17else
19 CONSOLE_ENABLE = yes 18 CONSOLE_ENABLE = yes
20 COMMAND_ENABLE = yes 19 COMMAND_ENABLE = yes
21 RGBLIGHT_ENABLE = no 20 RGBLIGHT_ENABLE = yes
22 RGB_MATRIX_ENABLE = WS2812 21 RGB_MATRIX_ENABLE = no
22 AUDIO_ENABLE = yes
23endif 23endif
24ifeq ($(strip $(KEYBOARD)), planck/light) 24ifeq ($(strip $(KEYBOARD)), planck/light)
25 RGB_MATRIX_ENABLE = yes 25 RGB_MATRIX_ENABLE = yes
26 RGBLIGHT_ENABLE = no 26 RGBLIGHT_ENABLE = yes
27 RGBLIGHT_STARTUP_ANIMATION = no 27 RGBLIGHT_STARTUP_ANIMATION = yes
28 AUDIO_ENABLE = yes
28 # HAPTIC_ENABLE += SOLENOID 29 # HAPTIC_ENABLE += SOLENOID
29endif 30endif
30ifeq ($(strip $(KEYBOARD)), planck/ez) 31ifeq ($(strip $(KEYBOARD)), planck/ez)
@@ -37,4 +38,5 @@ ifeq ($(strip $(KEYBOARD)), planck/ez)
37 RGBLIGHT_STARTUP_ANIMATION = yes 38 RGBLIGHT_STARTUP_ANIMATION = yes
38 CONSOLE_ENABLE = yes 39 CONSOLE_ENABLE = yes
39 COMMAND_ENABLE = yes 40 COMMAND_ENABLE = yes
41 AUDIO_ENABLE = yes
40endif 42endif
diff --git a/layouts/community/ortho_5x12/drashna/rules.mk b/layouts/community/ortho_5x12/drashna/rules.mk
index cae4b27ba..b5d55a681 100644
--- a/layouts/community/ortho_5x12/drashna/rules.mk
+++ b/layouts/community/ortho_5x12/drashna/rules.mk
@@ -4,7 +4,6 @@ EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
4CONSOLE_ENABLE = no # Console for debug(+400) 4CONSOLE_ENABLE = no # Console for debug(+400)
5COMMAND_ENABLE = no # Commands for debug and configuration 5COMMAND_ENABLE = no # Commands for debug and configuration
6TAP_DANCE_ENABLE = no 6TAP_DANCE_ENABLE = no
7AUDIO_ENABLE = yes
8NKRO_ENABLE = yes 7NKRO_ENABLE = yes
9 8
10ifeq ($(strip $(KEYBOARD)), fractal) 9ifeq ($(strip $(KEYBOARD)), fractal)