diff options
| author | Drashna Jaelre <drashna@live.com> | 2020-01-06 01:49:49 -0800 |
|---|---|---|
| committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-01-06 01:49:48 -0800 |
| commit | 00d3061e02fa5fedaa6e6cebd310d4e716ffffee (patch) | |
| tree | f799486433da3995d7db6c44f4a32d2a86be4ef8 /layouts/community/ergodox/drashna/keymap.c | |
| parent | b3b115bcc4466b0320a6725c8e994a9ef4186328 (diff) | |
| download | qmk_firmware-00d3061e02fa5fedaa6e6cebd310d4e716ffffee.tar.gz qmk_firmware-00d3061e02fa5fedaa6e6cebd310d4e716ffffee.zip | |
[Keymap] Cleanup of Drashna code (#7800)
* ifdef rgb stuff like a madman for RGB Coexistance
* Re-enable RGB Light on Planck
* fix RGB Coexistance issue
* Tweak feature settings for Ergodox EZ Glow
* Their powers combine, and I am Captain RGB
This one is for noroadsleft and yan.
* Limit brightness when both RGB features are enabled
* Change shutdown method
* Add RGB Coexistience stuff to keymap
* disable RGBLIGHT_SLEEP until a solution can be found
* Disable Unicode on the kyria
* Fix up Iris rev defines
* Fix up community layouts to compile properly
* Cleanup rgb stuff
* Merge ergodox keymaps
* Update CCCV macro to use tap_code16
* Enable Solenoid on C39
Because josh couldn't
* Enable RGB Light, not Matrix on rev6 keymap
* Only enable LTO on non-ARM boards
* Clean up Bootmagic OLED display
* Enable RGBLIGHT_SPLIT on kyria
Not that it does anything
* Add hotkey for discord
Diffstat (limited to 'layouts/community/ergodox/drashna/keymap.c')
| -rw-r--r-- | layouts/community/ergodox/drashna/keymap.c | 41 |
1 files changed, 21 insertions, 20 deletions
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); |
