diff options
Diffstat (limited to 'layouts/community/ortho_4x12/drashna/keymap.c')
-rw-r--r-- | layouts/community/ortho_4x12/drashna/keymap.c | 55 |
1 files changed, 3 insertions, 52 deletions
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c index 3ba9cf64f..ce241fd76 100644 --- a/layouts/community/ortho_4x12/drashna/keymap.c +++ b/layouts/community/ortho_4x12/drashna/keymap.c | |||
@@ -201,17 +201,8 @@ led_config_t g_led_config = { | |||
201 | // clange-format on | 201 | // clange-format on |
202 | # endif | 202 | # endif |
203 | 203 | ||
204 | // clang-format off | ||
205 | void suspend_power_down_keymap(void) { | ||
206 | rgb_matrix_set_suspend_state(true); | ||
207 | } | ||
208 | 204 | ||
209 | void suspend_wakeup_init_keymap(void) { | 205 | bool rgb_matrix_indicators_advanced_keymap(uint8_t led_min, uint8_t led_max) { |
210 | rgb_matrix_set_suspend_state(false); | ||
211 | } | ||
212 | // clang-format on | ||
213 | |||
214 | void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | ||
215 | uint8_t this_mod = get_mods(); | 206 | uint8_t this_mod = get_mods(); |
216 | uint8_t this_led = host_keyboard_leds(); | 207 | uint8_t this_led = host_keyboard_leds(); |
217 | uint8_t this_osm = get_oneshot_mods(); | 208 | uint8_t this_osm = get_oneshot_mods(); |
@@ -221,48 +212,6 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | |||
221 | # define THUMB_LED 42 | 212 | # define THUMB_LED 42 |
222 | # endif | 213 | # endif |
223 | # define RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(...) RGB_MATRIX_INDICATOR_SET_COLOR(__VA_ARGS__) | 214 | # define RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(...) RGB_MATRIX_INDICATOR_SET_COLOR(__VA_ARGS__) |
224 | # if defined(RGBLIGHT_ENABLE) | ||
225 | if (!userspace_config.rgb_layer_change) | ||
226 | # else | ||
227 | if (userspace_config.rgb_layer_change) | ||
228 | # endif | ||
229 | { | ||
230 | switch (get_highest_layer(layer_state)) { | ||
231 | case _GAMEPAD: | ||
232 | rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max); | ||
233 | break; | ||
234 | case _DIABLO: | ||
235 | rgb_matrix_layer_helper(HSV_RED, 1, rgb_matrix_config.speed * 8, LED_FLAG_MODIFIER, led_min, led_max); | ||
236 | break; | ||
237 | case _RAISE: | ||
238 | rgb_matrix_layer_helper(HSV_YELLOW, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max); | ||
239 | break; | ||
240 | case _LOWER: | ||
241 | rgb_matrix_layer_helper(HSV_GREEN, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max); | ||
242 | break; | ||
243 | case _ADJUST: | ||
244 | rgb_matrix_layer_helper(HSV_RED, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max); | ||
245 | break; | ||
246 | default: | ||
247 | { | ||
248 | switch (get_highest_layer(default_layer_state)) { | ||
249 | case _DEFAULT_LAYER_1: | ||
250 | rgb_matrix_layer_helper(DEFAULT_LAYER_1_HSV, 0, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max); | ||
251 | break; | ||
252 | case _DEFAULT_LAYER_2: | ||
253 | rgb_matrix_layer_helper(DEFAULT_LAYER_2_HSV, 0, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max); | ||
254 | break; | ||
255 | case _DEFAULT_LAYER_3: | ||
256 | rgb_matrix_layer_helper(DEFAULT_LAYER_3_HSV, 0, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max); | ||
257 | break; | ||
258 | case _DEFAULT_LAYER_4: | ||
259 | rgb_matrix_layer_helper(DEFAULT_LAYER_4_HSV, 0, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max); | ||
260 | break; | ||
261 | } | ||
262 | break; | ||
263 | } | ||
264 | } | ||
265 | } | ||
266 | 215 | ||
267 | switch (get_highest_layer(default_layer_state)) { | 216 | switch (get_highest_layer(default_layer_state)) { |
268 | case _DEFAULT_LAYER_1: | 217 | case _DEFAULT_LAYER_1: |
@@ -296,6 +245,8 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | |||
296 | if ((this_mod | this_osm) & MOD_MASK_ALT) { | 245 | if ((this_mod | this_osm) & MOD_MASK_ALT) { |
297 | RGB_MATRIX_INDICATOR_SET_COLOR(38, 0x00, 0x00, 0xFF); | 246 | RGB_MATRIX_INDICATOR_SET_COLOR(38, 0x00, 0x00, 0xFF); |
298 | } | 247 | } |
248 | |||
249 | return true; | ||
299 | } | 250 | } |
300 | 251 | ||
301 | void matrix_init_keymap(void) { | 252 | void matrix_init_keymap(void) { |