Skip to content

Commit

Permalink
[Keymap] Display default layer name (qmk#14819)
Browse files Browse the repository at this point in the history
  • Loading branch information
riblee authored Oct 14, 2021
1 parent 3ef486f commit 9328119
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion users/riblee/riblee.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,19 @@ void oled_task_user(void) {

switch (get_highest_layer(layer_state)) {
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;
case _LOWER:
oled_write_P(PSTR("Lower\n"), false);
Expand Down

0 comments on commit 9328119

Please sign in to comment.