[Keymap] Drashna Keymap updates for 0.21.0 (#21073)
This commit is contained in:
parent
1411c79aef
commit
3a3e5abac9
71 changed files with 1609 additions and 2215 deletions
|
@ -91,8 +91,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
|
||||
};
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
# ifdef ENCODER_MAP_ENABLE
|
||||
#ifdef ENCODER_MAP_ENABLE
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
[_DEFAULT_LAYER_1] = { { KC_DOWN, KC_UP } },
|
||||
[_DEFAULT_LAYER_2] = { { _______, _______ } },
|
||||
|
@ -107,23 +106,6 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
|||
[_ADJUST] = { { CK_DOWN, CK_UP } },
|
||||
};
|
||||
// clang-format on
|
||||
# else
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _RAISE:
|
||||
clockwise ? rgblight_step() : rgblight_step_reverse();
|
||||
break;
|
||||
case _LOWER:
|
||||
clockwise ? rgb_matrix_step() : rgb_matrix_step_reverse();
|
||||
break;
|
||||
default:
|
||||
clockwise ? tap_code(KC_VOLU) : tap_code(KC_VOLD);
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
# endif // ENCODER_ENABLE
|
||||
|
||||
#endif
|
||||
|
||||
bool rgb_matrix_indicators_advanced_keymap(uint8_t led_min, uint8_t led_max) {
|
||||
|
@ -133,8 +115,7 @@ bool rgb_matrix_indicators_advanced_keymap(uint8_t led_min, uint8_t led_max) {
|
|||
#define THUMB_LED 6
|
||||
#define RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(...) RGB_MATRIX_INDICATOR_SET_COLOR(__VA_ARGS__)
|
||||
|
||||
extern bool host_driver_disabled;
|
||||
if (host_driver_disabled) {
|
||||
if (get_keyboard_lock()) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, RGB_OFF);
|
||||
} else {
|
||||
switch (get_highest_layer(default_layer_state)) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
BOOTMAGIC_ENABLE = yes
|
||||
EXTRAKEY_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = yes
|
||||
TAP_DANCE_ENABLE = no
|
||||
NKRO_ENABLE = yes
|
||||
RGBLIGHT_STARTUP_ANIMATION = yes
|
||||
RGBLIGHT_STARTUP_ANIMATION = no
|
||||
ENCODER_MAP_ENABLE = yes
|
||||
|
||||
AUTOCORRECT_ENABLE = no
|
||||
CUSTOM_UNICODE_ENABLE = no
|
||||
AUTOCORRECT_ENABLE = no
|
||||
CUSTOM_UNICODE_ENABLE = no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue