diff options
Diffstat (limited to 'keyboards/naked60/keymaps/default_with_nafuda/keymap.c')
| -rw-r--r-- | keyboards/naked60/keymaps/default_with_nafuda/keymap.c | 80 |
1 files changed, 17 insertions, 63 deletions
diff --git a/keyboards/naked60/keymaps/default_with_nafuda/keymap.c b/keyboards/naked60/keymaps/default_with_nafuda/keymap.c index d50af530d..4738ef36e 100644 --- a/keyboards/naked60/keymaps/default_with_nafuda/keymap.c +++ b/keyboards/naked60/keymaps/default_with_nafuda/keymap.c | |||
| @@ -2,11 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | extern keymap_config_t keymap_config; | 3 | extern keymap_config_t keymap_config; |
| 4 | 4 | ||
| 5 | #ifdef RGBLIGHT_ENABLE | ||
| 6 | //Following line allows macro to read current RGB settings | ||
| 7 | extern rgblight_config_t rgblight_config; | ||
| 8 | #endif | ||
| 9 | |||
| 10 | extern uint8_t is_master; | 5 | extern uint8_t is_master; |
| 11 | 6 | ||
| 12 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 7 | // Each layer gets a name for readability, which is then used in the keymap matrix below. |
| @@ -24,13 +19,7 @@ enum layer_number { | |||
| 24 | }; | 19 | }; |
| 25 | 20 | ||
| 26 | enum custom_keycodes { | 21 | enum custom_keycodes { |
| 27 | FLOCK = SAFE_RANGE, | 22 | RGB_RST = SAFE_RANGE |
| 28 | MOUSE, | ||
| 29 | BROWSER, | ||
| 30 | LOWER, | ||
| 31 | RAISE, | ||
| 32 | ADJUST, | ||
| 33 | RGBRST | ||
| 34 | }; | 23 | }; |
| 35 | 24 | ||
| 36 | enum tapdances{ | 25 | enum tapdances{ |
| @@ -38,41 +27,23 @@ enum tapdances{ | |||
| 38 | TD_ESQW, | 27 | TD_ESQW, |
| 39 | }; | 28 | }; |
| 40 | 29 | ||
| 41 | // Fillers to make layering more clear | ||
| 42 | |||
| 43 | #define KC_CAD LCA(KC_DEL) | ||
| 44 | #define KC_APSCR LALT(KC_PSCR) | ||
| 45 | |||
| 46 | #define KC_SNUBS S(KC_NUBS) | ||
| 47 | #define KC_SNUHS S(KC_NUHS) | ||
| 48 | |||
| 49 | #define KC_RTAB LCTL(KC_TAB) | ||
| 50 | #define KC_LTAB LCTL(LSFT(KC_TAB)) | ||
| 51 | #define KC_CTAB LCTL(KC_W) | ||
| 52 | #define KC_RETAB LCTL(LSFT(KC_T)) | ||
| 53 | |||
| 54 | #define KC_TGMO TG(_MOUSE) | ||
| 55 | #define KC_TGBR TG(_BROWSER) | ||
| 56 | #define KC_BSAD LT(_ADJUST, KC_BSPC) | ||
| 57 | |||
| 58 | qk_tap_dance_action_t tap_dance_actions[] = { | 30 | qk_tap_dance_action_t tap_dance_actions[] = { |
| 59 | [TD_ESFL] = ACTION_TAP_DANCE_DUAL_ROLE(KC_ESC, _FLOCK), | 31 | [TD_ESFL] = ACTION_TAP_DANCE_DUAL_ROLE(KC_ESC, _FLOCK), |
| 60 | [TD_ESQW] = ACTION_TAP_DANCE_DUAL_ROLE(KC_ESC, _QWERTY), | 32 | [TD_ESQW] = ACTION_TAP_DANCE_DUAL_ROLE(KC_ESC, _QWERTY), |
| 61 | }; | 33 | }; |
| 62 | 34 | ||
| 63 | |||
| 64 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 35 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 65 | [_QWERTY] = LAYOUT_with_nafuda( | 36 | [_QWERTY] = LAYOUT_with_nafuda( |
| 66 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| | 37 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| |
| 67 | TD(TD_ESFL), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_TGMO, | 38 | TD(TD_ESFL), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, TG(_MOUSE), |
| 68 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 39 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 69 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, KC_BSAD, KC_UP, KC_TGBR, | 40 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,LT(_ADJUST, KC_BSPC),KC_UP,TG(_BROWSER), |
| 70 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 41 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 71 | KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_LEFT, KC_DOWN,KC_RIGHT, | 42 | KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_LEFT, KC_DOWN,KC_RIGHT, |
| 72 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| | 43 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| |
| 73 | KC_LCTRL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | 44 | KC_LCTRL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, |
| 74 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | 45 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| |
| 75 | ADJUST,KC_LCTRL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP,KC_RIGHT | 46 | MO(_ADJUST),KC_LCTRL, KC_LALT, KC_LGUI,MO(_LOWER),KC_SPC,KC_SPC,MO(_RAISE), KC_LEFT, KC_DOWN, KC_UP,KC_RIGHT |
| 76 | //`------------------------------------------------------------------------------------------------------------' | 47 | //`------------------------------------------------------------------------------------------------------------' |
| 77 | ), | 48 | ), |
| 78 | 49 | ||
| @@ -92,7 +63,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 92 | 63 | ||
| 93 | [_MOUSE] = LAYOUT_with_nafuda( | 64 | [_MOUSE] = LAYOUT_with_nafuda( |
| 94 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| | 65 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| |
| 95 | TD(TD_ESFL), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_TGMO, | 66 | TD(TD_ESFL), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, TG(_MOUSE), |
| 96 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 67 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 97 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_MS_U, KC_BTN2, | 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_MS_U, KC_BTN2, |
| 98 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 69 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| @@ -106,11 +77,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 106 | 77 | ||
| 107 | [_BROWSER] = LAYOUT_with_nafuda( | 78 | [_BROWSER] = LAYOUT_with_nafuda( |
| 108 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| | 79 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| |
| 109 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_CTAB, | 80 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, LCTL(KC_W), |
| 110 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 81 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 111 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_RETAB, KC_WH_U, KC_TGBR, | 82 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,LCTL(LSFT(KC_T)),KC_WH_U,TG(_BROWSER), |
| 112 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 83 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 113 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LTAB, KC_WH_D, KC_RTAB, | 84 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,LCTL(LSFT(KC_TAB)), KC_WH_D,LCTL(KC_TAB), |
| 114 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| | 85 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| |
| 115 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 86 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 116 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | 87 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| |
| @@ -120,13 +91,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 120 | 91 | ||
| 121 | [_LOWER] = LAYOUT_with_nafuda( | 92 | [_LOWER] = LAYOUT_with_nafuda( |
| 122 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| | 93 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| |
| 123 | KC_ESC, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TGMO, | 94 | KC_ESC, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, TG(_MOUSE), |
| 124 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 95 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 125 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR,KC_LPRN, KC_RPRN, KC_DEL, KC_BSAD, KC_UP, KC_TGBR, | 96 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR,KC_LPRN, KC_RPRN, KC_DEL,LT(_ADJUST, KC_BSPC), KC_UP,TG(_MOUSE), |
| 126 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 97 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 127 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_LEFT, KC_DOWN,KC_RIGHT, | 98 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_LEFT, KC_DOWN,KC_RIGHT, |
| 128 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| | 99 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| |
| 129 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,KC_SNUHS,KC_SNUBS, _______, _______, _______, | 100 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______,_______,_______, |
| 130 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | 101 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| |
| 131 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | 102 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY |
| 132 | //`------------------------------------------------------------------------------------------------------------' | 103 | //`------------------------------------------------------------------------------------------------------------' |
| @@ -134,9 +105,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 134 | 105 | ||
| 135 | [_RAISE] = LAYOUT_with_nafuda( | 106 | [_RAISE] = LAYOUT_with_nafuda( |
| 136 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| | 107 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| |
| 137 | KC_ESC, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TGMO, | 108 | KC_ESC, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, TG(_MOUSE), |
| 138 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 109 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 139 | KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, KC_BSAD, KC_UP, KC_TGBR, | 110 | KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,LT(_ADJUST, KC_BSPC), KC_UP,TG(_MOUSE), |
| 140 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 111 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 141 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_LEFT, KC_DOWN,KC_RIGHT, | 112 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_LEFT, KC_DOWN,KC_RIGHT, |
| 142 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| | 113 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| |
| @@ -150,37 +121,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 150 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| | 121 | //,-----------------------------------------------------| |-----------------------------------------------------. |--------------------------| |
| 151 | KC_ESC, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RGB_VAD, | 122 | KC_ESC, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RGB_VAD, |
| 152 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 123 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 153 | _______, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BTN1, KC_MS_U, KC_BTN2, XXXXXXX,LALT(KC_PSCR), ADJUST, RGB_SAD, RGB_VAI, | 124 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BTN1, KC_MS_U, KC_BTN2, XXXXXXX,LALT(KC_PSCR), _ADJUST, RGB_SAD, RGB_VAI, |
| 154 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| | 125 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------+--------+--------| |
| 155 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MS_L, KC_MS_D, KC_MS_R, XXXXXXX, KC_PSCR, RGB_MOD, RGB_TOG, RGB_SAI, | 126 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MS_L, KC_MS_D, KC_MS_R, XXXXXXX, KC_PSCR, RGB_MOD, RGB_TOG, RGB_SAI, |
| 156 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| | 127 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| |--------------------------| |
| 157 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,LCA(KC_DEL), | 128 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,LCA(KC_DEL), |
| 158 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | 129 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| |
| 159 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | 130 | _______, _______, _______, _______, _______, RESET, RESET, _______, _______, _______, _______, _______ |
| 160 | //`------------------------------------------------------------------------------------------------------------' | 131 | //`------------------------------------------------------------------------------------------------------------' |
| 161 | ) | 132 | ) |
| 162 | }; | 133 | }; |
| 163 | 134 | ||
| 164 | static inline void update_change_layer(bool pressed, uint8_t layer1, uint8_t layer2, uint8_t layer3) { | ||
| 165 | |||
| 166 | pressed ? layer_on(layer1) : layer_off(layer1); | ||
| 167 | IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2) ? layer_on(layer3) : layer_off(layer3); | ||
| 168 | } | ||
| 169 | |||
| 170 | int RGB_current_mode; | 135 | int RGB_current_mode; |
| 171 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 136 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 172 | 137 | ||
| 173 | bool result = false; | 138 | bool result = false; |
| 174 | switch (keycode) { | 139 | switch (keycode) { |
| 175 | case LOWER: | ||
| 176 | update_change_layer(record->event.pressed, _LOWER, _RAISE, _ADJUST); | ||
| 177 | break; | ||
| 178 | case RAISE: | ||
| 179 | update_change_layer(record->event.pressed, _RAISE, _LOWER, _ADJUST); | ||
| 180 | break; | ||
| 181 | case ADJUST: | ||
| 182 | update_change_layer(record->event.pressed, _ADJUST, _RAISE, _LOWER); | ||
| 183 | break; | ||
| 184 | #ifdef RGBLIGHT_ENABLE | 140 | #ifdef RGBLIGHT_ENABLE |
| 185 | case RGB_MOD: | 141 | case RGB_MOD: |
| 186 | if (record->event.pressed) { | 142 | if (record->event.pressed) { |
| @@ -189,7 +145,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 189 | RGB_current_mode = rgblight_config.mode; | 145 | RGB_current_mode = rgblight_config.mode; |
| 190 | } | 146 | } |
| 191 | break; | 147 | break; |
| 192 | case RGBRST: | 148 | case RGB_RST: |
| 193 | if (record->event.pressed) { | 149 | if (record->event.pressed) { |
| 194 | eeconfig_update_rgblight_default(); | 150 | eeconfig_update_rgblight_default(); |
| 195 | rgblight_enable(); | 151 | rgblight_enable(); |
| @@ -206,7 +162,5 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 206 | } | 162 | } |
| 207 | 163 | ||
| 208 | void matrix_init_user(void) { | 164 | void matrix_init_user(void) { |
| 209 | #ifdef RGBLIGHT_ENABLE | 165 | |
| 210 | RGB_current_mode = rgblight_config.mode; | ||
| 211 | #endif | ||
| 212 | } | 166 | } |
