diff options
| -rwxr-xr-x | bin/statusbar | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/statusbar b/bin/statusbar index 5da3abd..3564c54 100755 --- a/bin/statusbar +++ b/bin/statusbar @@ -31,7 +31,7 @@ battery() { status=$(cat /sys/class/power_supply/BAT0/status) capacity=$(cat /sys/class/power_supply/BAT0/capacity) - idx=$(((capacity - 1) / 10)) + idx=$(((capacity - 1) / 10 + 1)) case "$status" in "Discharging") symbol=$(echo "<span foreground=\"#ed8796\"></span>,,,,,,,,," | |
