URI: 
       tConvert battery time to hours and minutes - spoon - dwm status utility (2f30 fork)
  HTML git clone git://src.adamsgaard.dk/spoon
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
   DIR commit 23e70d20df554efddac0407f3200b42a17f68168
   DIR parent d500745cb3de6d6c475ccdccd96e7919bd56720e
  HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Fri, 17 Apr 2020 21:53:32 +0200
       
       Convert battery time to hours and minutes
       
       Diffstat:
         M batt.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/batt.c b/batt.c
       t@@ -17,7 +17,7 @@ battprint(char *buf, size_t len, int acon, int life, int remain)
        
                c = acon ? '=' : ' ';
                if (c == ' ')
       -                snprintf(buf, len, "%d%% %d min", life, remain);
       +                snprintf(buf, len, "%d%% %d:%02d", life, remain/60, remain%60);
                else
                        snprintf(buf, len, "%d%%", life);