From 461bcdad1fc308f5c8a0defb51d1a015e943600c Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 9 Apr 2018 08:22:59 +0100 Subject: [i3] Correct battery script --- i3/.config/i3blocks/bin/battery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i3/.config/i3blocks') 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 "$icon $charge_percent% ($time_remaining)" -- cgit v1.2.3