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:
b11dd2d
)
loading thresholds state
author
Aaron Marcher
<info@nulltime.net>
Thu, 30 Mar 2017 15:32:20 +0000
(17:32 +0200)
committer
Aaron Marcher
<info@nulltime.net>
Thu, 30 Mar 2017 15:32:20 +0000
(17:32 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 53e19462596e627fb1023e6f319261ce0f8cab1d..90b48080a4a0691a732b205a324f2d372a08d074 100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-140,6
+140,8
@@
battery_state(const char *bat)
return smprintf("-");
} else if (strcmp(state, "Full") == 0) {
return smprintf("=");
+ } else if (strcmp(state, "Unknown") == 0) {
+ return smprintf("/");
} else {
return smprintf("?");
}