From 840f28167b55795ce6c3998be2c687093e480fa3 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Sun, 17 Dec 2023 18:19:16 +0000 Subject: [PATCH] replaced battery icons --- battery.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/battery.c b/battery.c index 1a44745..8749e14 100644 --- a/battery.c +++ b/battery.c @@ -7,18 +7,18 @@ #include #include -const char *bat_icons[] = { - "\uf58d", /* 0% */ - "\uf579", - "\uf57a", - "\uf57b", - "\uf57c", - "\uf57d", /* 50% */ - "\uf57e", - "\uf57f", - "\uf580", - "\uf581", - "\uf578", /* 100% */ +const char *bat_icons1[] = { + "󰂎", /* 0% */ + "󰁺", + "󰁻", + "󰁼", + "󰁽", + "󰁾", /* 50% */ + "󰁿", + "󰂀", + "󰂁", + "󰂂", + "󰁹", /* 100% */ }; int main() { @@ -38,19 +38,19 @@ int main() { switch (state) { case 0: /* fully charged */ - printf("\uf583 Full"); + printf("󰂄 Full"); break; case 1: /* discharging */ - printf("%s %d%%\n", bat_icons[life / 10], life); + printf("%s %d%%\n", bat_icons1[life / 10], life); break; case 2: /* charging */ - printf("\uf583 %d%%\n", life); + printf("󰂄 %d%%\n", life); break; case 7: /* disconnected */ - printf("\uf492"); + printf("󰂑"); break; default: /* unknown code */ - printf("\uf590"); + printf(" unknown battery code"); } return EXIT_SUCCESS; -- libgit2 0.21.2