1
0
Fork 0

[Keymap] Display default layer name (#14819)

This commit is contained in:
Reibl János Dániel 2021-10-14 19:28:06 +02:00 committed by GitHub
parent b8de20f1e2
commit e8dadf51ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,7 +190,19 @@ void oled_task_user(void) {
switch (get_highest_layer(layer_state)) { switch (get_highest_layer(layer_state)) {
case _QWERTY: case _QWERTY:
oled_write_P(PSTR("Default\n"), false); if (layer_state_cmp(default_layer_state, _QWERTY)) {
oled_write_P(PSTR("Qwerty\n"), false);
} else if (layer_state_cmp(default_layer_state, _COLEMAK)) {
oled_write_P(PSTR("Colmak\n"), false);
} else if (layer_state_cmp(default_layer_state, _DVORAK)) {
oled_write_P(PSTR("Dvorak\n"), false);
} else if (layer_state_cmp(default_layer_state, _WORKMAN)) {
oled_write_P(PSTR("Workman\n"), false);
} else if (layer_state_cmp(default_layer_state, _HUNGARIAN)) {
oled_write_P(PSTR("HUN Qwerty\n"), false);
} else {
oled_write_P(PSTR("Undefined\n"), false);
}
break; break;
case _LOWER: case _LOWER:
oled_write_P(PSTR("Lower\n"), false); oled_write_P(PSTR("Lower\n"), false);