Xinqi Bao's Git
projects
/
slstatus.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2b0f50d
)
Full battery indicator
author
Cem Keylan <
[email protected]
>
Wed, 2 Oct 2019 08:31:54 +0000
(11:31 +0300)
committer
Aaron 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
patch
|
blob
|
history
diff --git
a/components/battery.c
b/components/battery.c
index
07b6ac1
..
f2b0f14
100644
(file)
--- a/
components/battery.c
+++ b/
components/battery.c
@@
-52,6
+52,7
@@
} map[] = {
{ "Charging", "+" },
{ "Discharging", "-" },
+ { "Full", "o" },
};
size_t i;
char path[PATH_MAX], state[12];