From: Silvio Rhatto Date: Thu, 15 May 2014 19:25:46 +0000 (-0300) Subject: Set battery level indication based on rounded charge value X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9672b0581cba2cd226ac199e62b3c106921d771c;p=scripts.git Set battery level indication based on rounded charge value --- diff --git a/battery b/battery index 487610b..0fe1aeb 100755 --- a/battery +++ b/battery @@ -43,7 +43,7 @@ else fi # Set battery level indication -if (($charge <= 25)); then +if ((`echo $charge | cut -d ',' -f 1` <= 25)); then chargeColor=$low else chargeColor=$healthy