add battery percentage to status bar

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
noneofyourbusiness 4 years ago committed by Maarten van Gompel
parent 98bd4b2f0d
commit 875e4b6f3a
  1. 34
      scripts/core/sxmo_statusbar.sh

@ -61,41 +61,41 @@ update() {
)"
if [ "$BATSTATUS" = "C" ]; then
if [ "$PCT" -lt 20 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 30 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 40 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 60 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 80 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 90 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
else
BATSTATUS=""
BATSTATUS="$PCT% "
fi
else
if [ "$PCT" -lt 10 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 20 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 30 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 40 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 50 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 60 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 70 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 80 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
elif [ "$PCT" -lt 90 ]; then
BATSTATUS=""
BATSTATUS="$PCT% "
else
BATSTATUS=""
BATSTATUS="$PCT% "
fi
fi

Loading…
Cancel
Save