projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0f50d
)
Full battery indicator
author
Cem Keylan
<cem@ckyln.com>
Wed, 2 Oct 2019 08:31:54 +0000
(11:31 +0300)
committer
Aaron Marcher
<me@drkhsh.at>
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 07b6ac16f28c98cbcbd6267bc198a0eb4aa7dc01..f2b0f147003231befb7a86653c77095f09454555 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];