Xinqi Bao's Git

Full battery indicator
authorCem Keylan <[email protected]>
Wed, 2 Oct 2019 08:31:54 +0000 (11:31 +0300)
committerAaron Marcher <[email protected]>
Mon, 30 Nov 2020 20:23:26 +0000 (21:23 +0100)
When you reach full charge the symbol would change
to a question mark "?" as "Full" was not defined,
now it changes to an "o" instead.

components/battery.c

index 07b6ac1..f2b0f14 100644 (file)
@@ -52,6 +52,7 @@
                } map[] = {
                        { "Charging",    "+" },
                        { "Discharging", "-" },
                } map[] = {
                        { "Charging",    "+" },
                        { "Discharging", "-" },
+                       { "Full",        "o" },
                };
                size_t i;
                char path[PATH_MAX], state[12];
                };
                size_t i;
                char path[PATH_MAX], state[12];