OSDN Git Service
(root)
/
instantos
/
instantOS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c85fb95
)
temporary fix battery status error
author
paperbenni
<paperbenni@gmail.com>
Wed, 9 Dec 2020 22:36:57 +0000
(23:36 +0100)
committer
paperbenni
<paperbenni@gmail.com>
Wed, 9 Dec 2020 22:36:57 +0000
(23:36 +0100)
status.sh
patch
|
blob
|
history
diff --git
a/status.sh
b/status.sh
index
87915da
..
dd86376
100755
(executable)
--- a/
status.sh
+++ b/
status.sh
@@
-34,7
+34,7
@@
while :; do
# battery indicator on laptop
if [ -n "$ISLAPTOP" ]; then
- TMPBAT=$(acpi)
+ TMPBAT=$(acpi
| head -1
)
if [[ $TMPBAT =~ "Charging" ]]; then
BATTERY="^c$GREEN^ B"$(egrep -o '[0-9]*%' <<<"$TMPBAT")" "
else