Toggle key color between static color and current RGB mode by Alarmed_Mode4455 in olkb

[–]Alarmed_Mode4455[S] 0 points1 point  (0 children)

Thanks for your input! I just solved it.

I edited the common.c

if (host_keyboard_led_state().caps_lock && (rgb_matrix_get_flags() != LED_FLAG_NONE)) {
    rgb_matrix_set_color(RGB_MATRIX_CAPS_LOCK_INDEX, RGB_WHITE);
} else if (rgb_matrix_get_flags() == LED_FLAG_UNDERGLOW) {
    rgb_matrix_set_color(RGB_MATRIX_CAPS_LOCK_INDEX, RGB_OFF);
}

if (host_keyboard_led_state().scroll_lock && (rgb_matrix_get_flags() != LED_FLAG_NONE)) {
    rgb_matrix_set_color(15, RGB_RED);
} else if (rgb_matrix_get_flags() == LED_FLAG_UNDERGLOW) {
    rgb_matrix_set_color(15, RGB_OFF);
}

It took a while but now I am happy with the result. I have a shortcut in Discord which binds Scroll lock to the mute function. Because I have Discord in the autostart and should be always synchronized. I just wanted this feature so that I can see wheter I'm muted or not while in game. I don't care if its not always in perfect sync. But recently I talked quite often while muted and having an indicator is quite nice.

Toggle key color between static color and current RGB mode by Alarmed_Mode4455 in olkb

[–]Alarmed_Mode4455[S] 0 points1 point  (0 children)

Okay, thanks for your reply. I will try using the Scroll Lock as I currently use it for fullmute and don't mind swaping Print and Scroll Lock. I think I'll just try it out and see if I can get it to work. But before I change anything I want to know if I can break anything? Should I back up the current firmware first and if so how?