Fix the statusbar battery icon

We hardcode the file path as it is now configurable
master
Stacy Harper 4 years ago
parent 500a227d05
commit 200ecfa1a7
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 2
      scripts/core/sxmo_statusbar.sh

@ -54,7 +54,7 @@ update() {
fi fi
# Battery pct # Battery pct
BATTERY_DEVICE="${BATTERY_DEVICE:-"/sys/class/power_supply/*-battery"}" BATTERY_DEVICE="${BATTERY_DEVICE:-"/sys/class/power_supply/axp20x-battery"}"
PCT="$(cat "$BATTERY_DEVICE"/capacity)" PCT="$(cat "$BATTERY_DEVICE"/capacity)"
BATSTATUS="$( BATSTATUS="$(
cut -c1 "$BATTERY_DEVICE"/status cut -c1 "$BATTERY_DEVICE"/status

Loading…
Cancel
Save