diff options
Diffstat (limited to 'keyboards/keebio/quefrency/keymaps/jonavin/keymap.c')
| -rw-r--r-- | keyboards/keebio/quefrency/keymaps/jonavin/keymap.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/keyboards/keebio/quefrency/keymaps/jonavin/keymap.c b/keyboards/keebio/quefrency/keymaps/jonavin/keymap.c index 415f554e2..81b8497ca 100644 --- a/keyboards/keebio/quefrency/keymaps/jonavin/keymap.c +++ b/keyboards/keebio/quefrency/keymaps/jonavin/keymap.c | |||
| @@ -89,6 +89,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 89 | enum custom_rgblight_layers | 89 | enum custom_rgblight_layers |
| 90 | { | 90 | { |
| 91 | _rgbCAPS, | 91 | _rgbCAPS, |
| 92 | _rgbNUMLOCK, | ||
| 92 | _rgbWINLOCK, | 93 | _rgbWINLOCK, |
| 93 | _rgbFN, | 94 | _rgbFN, |
| 94 | _rgbNUMPAD, | 95 | _rgbNUMPAD, |
| @@ -98,7 +99,9 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 98 | const rgblight_segment_t PROGMEM _rgb_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS( | 99 | const rgblight_segment_t PROGMEM _rgb_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS( |
| 99 | {14, 1, HSV_RED} // Light 4 LEDs, starting with LED 6 | 100 | {14, 1, HSV_RED} // Light 4 LEDs, starting with LED 6 |
| 100 | ); | 101 | ); |
| 101 | const rgblight_segment_t PROGMEM _rgb_winlock_layer[] = RGBLIGHT_LAYER_SEGMENTS( | 102 | const rgblight_segment_t PROGMEM _rgb_numlock_layer[] = RGBLIGHT_LAYER_SEGMENTS( |
| 103 | {15, 1, HSV_BLUE} | ||
| 104 | ); const rgblight_segment_t PROGMEM _rgb_winlock_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
| 102 | {13, 1, HSV_PURPLE} // Light 4 LEDs, starting with LED 6 | 105 | {13, 1, HSV_PURPLE} // Light 4 LEDs, starting with LED 6 |
| 103 | ); | 106 | ); |
| 104 | const rgblight_segment_t PROGMEM _rgb_fn_layer[] = RGBLIGHT_LAYER_SEGMENTS( | 107 | const rgblight_segment_t PROGMEM _rgb_fn_layer[] = RGBLIGHT_LAYER_SEGMENTS( |
| @@ -113,6 +116,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 113 | 116 | ||
| 114 | const rgblight_segment_t* const PROGMEM _rgb_layers[] = RGBLIGHT_LAYERS_LIST( | 117 | const rgblight_segment_t* const PROGMEM _rgb_layers[] = RGBLIGHT_LAYERS_LIST( |
| 115 | _rgb_capslock_layer, | 118 | _rgb_capslock_layer, |
| 119 | _rgb_numlock_layer, | ||
| 116 | _rgb_winlock_layer, | 120 | _rgb_winlock_layer, |
| 117 | _rgb_fn_layer, | 121 | _rgb_fn_layer, |
| 118 | _rgb_numpad_layer | 122 | _rgb_numpad_layer |
| @@ -120,6 +124,13 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 120 | 124 | ||
| 121 | bool led_update_user(led_t led_state) { | 125 | bool led_update_user(led_t led_state) { |
| 122 | rgblight_set_layer_state(_rgbCAPS, led_state.caps_lock); | 126 | rgblight_set_layer_state(_rgbCAPS, led_state.caps_lock); |
| 127 | |||
| 128 | #ifdef INVERT_NUMLOCK_INDICATOR | ||
| 129 | rgblight_set_layer_state(_rgbNUMLOCK, !led_state.num_lock); // inverse numlock indicator override | ||
| 130 | #else | ||
| 131 | rgblight_set_layer_state(_rgbNUMLOCK, led_state.num_lock); // normal, light LED when numlock on | ||
| 132 | #endif // INVERT_NUMLOCK_INDICATOR | ||
| 133 | |||
| 123 | rgblight_set_layer_state(_rgbWINLOCK, keymap_config.no_gui); | 134 | rgblight_set_layer_state(_rgbWINLOCK, keymap_config.no_gui); |
| 124 | return true; | 135 | return true; |
| 125 | } | 136 | } |
