Skip to content

Commit

Permalink
Fix to battery icon shown empty at 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Aug 26, 2020
1 parent 34c2fff commit 504941f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts-void/battery-icon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ if [[ $bat ]]; then
if [[ "$state" == *"Unknown"* ]]; then
level=${level::-1}
else
level=${level::-2}
if [[ "$level" == "100%" ]]; then
level=${level::-1}
else
level=${level::-2}
fi
fi
fi

Expand Down

0 comments on commit 504941f

Please sign in to comment.