add battery percentage to status bar

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
noneofyourbusiness 3 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 [ "$BATSTATUS" = "C" ]; then
if [ "$PCT" -lt 20 ]; then if [ "$PCT" -lt 20 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 30 ]; then elif [ "$PCT" -lt 30 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 40 ]; then elif [ "$PCT" -lt 40 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 60 ]; then elif [ "$PCT" -lt 60 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 80 ]; then elif [ "$PCT" -lt 80 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 90 ]; then elif [ "$PCT" -lt 90 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
else else
BATSTATUS="" BATSTATUS="$PCT% "
fi fi
else else
if [ "$PCT" -lt 10 ]; then if [ "$PCT" -lt 10 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 20 ]; then elif [ "$PCT" -lt 20 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 30 ]; then elif [ "$PCT" -lt 30 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 40 ]; then elif [ "$PCT" -lt 40 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 50 ]; then elif [ "$PCT" -lt 50 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 60 ]; then elif [ "$PCT" -lt 60 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 70 ]; then elif [ "$PCT" -lt 70 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 80 ]; then elif [ "$PCT" -lt 80 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
elif [ "$PCT" -lt 90 ]; then elif [ "$PCT" -lt 90 ]; then
BATSTATUS="" BATSTATUS="$PCT% "
else else
BATSTATUS="" BATSTATUS="$PCT% "
fi fi
fi fi

Loading…
Cancel
Save