summaryrefslogtreecommitdiff
path: root/i3/.config/i3blocks/bin/battery
diff options
context:
space:
mode:
Diffstat (limited to 'i3/.config/i3blocks/bin/battery')
-rwxr-xr-xi3/.config/i3blocks/bin/battery2
1 files changed, 1 insertions, 1 deletions
diff --git a/i3/.config/i3blocks/bin/battery b/i3/.config/i3blocks/bin/battery
index 7c7d76c..378ee3f 100755
--- a/i3/.config/i3blocks/bin/battery
+++ b/i3/.config/i3blocks/bin/battery
@@ -44,6 +44,6 @@ fi
time_remaining=$(printf "%02d:%02d" \
$(( tot_minutes_remaining/60 )) \
- $(( tot_minutes_remaining/60 )))
+ $(( tot_minutes_remaining - (tot_minutes_remaining/60)*60 )))
echo "<span color='$color'>$icon</span> $charge_percent% ($time_remaining)"