diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-05-11 17:44:00 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-05-11 17:44:00 -0400 |
| commit | 199b666279e7b577f470441ac2c9ac8b807b9ad2 (patch) | |
| tree | 3ee8d98ba76c09ec9a426793e317b364aa0a6288 /bin/statusbar | |
| parent | 5dfe6dc5b156527d2f7b16f20f906ae0bb415d99 (diff) | |
fix statusbar at low battery
Diffstat (limited to 'bin/statusbar')
| -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>,,,,,,,,," | |
