summaryrefslogtreecommitdiff
path: root/users/riblee
diff options
context:
space:
mode:
authorReibl János Dániel <janos.daniel.reibl@protonmail.com>2021-10-14 19:28:06 +0200
committerGitHub <noreply@github.com>2021-10-14 10:28:06 -0700
commite8dadf51ad4f43a72d246c3db7efc75253a388b5 (patch)
treeb2897be6f96503c261d5c21e4c779a820b0e1524 /users/riblee
parentb8de20f1e2bc2693f2dbf8f219a16eb8064120e9 (diff)
downloadqmk_firmware-e8dadf51ad4f43a72d246c3db7efc75253a388b5.tar.gz
qmk_firmware-e8dadf51ad4f43a72d246c3db7efc75253a388b5.zip
[Keymap] Display default layer name (#14819)
Diffstat (limited to 'users/riblee')
-rw-r--r--users/riblee/riblee.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/users/riblee/riblee.c b/users/riblee/riblee.c
index 4bfa298c4a..ae3bd7a2b1 100644
--- a/users/riblee/riblee.c
+++ b/users/riblee/riblee.c
@@ -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);