diff options
author | Urbain Vaes <urbain@vaes.uk> | 2018-04-09 08:22:59 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2018-04-09 08:22:59 +0100 |
commit | 461bcdad1fc308f5c8a0defb51d1a015e943600c (patch) | |
tree | 0199a31a19fbfd0d4d97657c3bcecfd53c7f48bb /i3/.config | |
parent | 0e325e0ac2110e9832aae051bb21f05dc6f8ccdc (diff) |
[i3] Correct battery script
Diffstat (limited to 'i3/.config')
-rwxr-xr-x | i3/.config/i3blocks/bin/battery | 2 |
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)" |