diff options
Diffstat (limited to 'layouts/community/ergodox')
| -rw-r--r-- | layouts/community/ergodox/drashna/config.h | 15 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna/keymap.c | 41 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna/rules.mk | 17 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna_glow/config.h | 9 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna_glow/keymap.c | 2 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna_glow/rules.mk | 13 |
6 files changed, 44 insertions, 53 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); } | |||
| 382 | void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); } | 382 | void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); } |
| 383 | 383 | ||
| 384 | void rgb_matrix_indicators_user(void) { | 384 | void 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 @@ | |||
| 1 | TAP_DANCE_ENABLE = yes | 1 | BOOTMAGIC_ENABLE = lite |
| 2 | TAP_DANCE_ENABLE = no | ||
| 2 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 3 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 3 | COMMAND_ENABLE = no # Commands for debug and configuration | 4 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 5 | CONSOLE_ENABLE = no | ||
| 4 | SPACE_CADET_ENABLE = no | 6 | SPACE_CADET_ENABLE = no |
| 7 | |||
| 5 | ifeq ($(strip $(KEYBOARD)), ergodox_ez) | 8 | ifeq ($(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 | ||
| 8 | endif | 14 | endif |
| 9 | CONSOLE_ENABLE = no | ||
| 10 | BOOTMAGIC_ENABLE = yes | ||
| 11 | 15 | ||
| 12 | UNICODE_ENABLE = yes | 16 | UNICODE_ENABLE = yes |
| 13 | UNICDOEMAP_ENABLE = no | 17 | UNICDOEMAP_ENABLE = no |
| 14 | 18 | ||
| 15 | RGBLIGHT_TWINKLE = no | ||
| 16 | INDICATOR_LIGHTS = no | ||
| 17 | RGBLIGHT_STARTUP_ANIMATION = yes | ||
| 18 | 19 | ||
| 19 | DEBOUNCE_TYPE = eager_pr | 20 | DEBOUNCE_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 @@ | |||
| 1 | USER_NAME := drashna | ||
| 2 | |||
| 3 | CORRECTED_LAYOUT := $(LAYOUTS_REPO)/$(LAYOUT)/drashna | ||
| 4 | |||
| 5 | SRC += $(CORRECTED_LAYOUT)/keymap.c | ||
| 6 | |||
| 7 | -include $(CORRECTED_LAYOUT)/rules.mk | ||
| 8 | |||
| 9 | ifeq ($(strip $(KEYBOARD)), ergodox_ez) | ||
| 10 | RGBLIGHT_ENABLE = no | ||
| 11 | RGB_MATRIX_ENABLE = yes | ||
| 12 | # TAP_DANCE_ENABLE = no | ||
| 13 | endif | ||
