From 200ecfa1a72ca87913e27b22f90cb40c7280d715 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Thu, 20 May 2021 19:40:25 +0200 Subject: [PATCH] Fix the statusbar battery icon We hardcode the file path as it is now configurable --- scripts/core/sxmo_statusbar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/sxmo_statusbar.sh b/scripts/core/sxmo_statusbar.sh index eb9cfec..8c2c96c 100755 --- a/scripts/core/sxmo_statusbar.sh +++ b/scripts/core/sxmo_statusbar.sh @@ -54,7 +54,7 @@ update() { fi # 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)" BATSTATUS="$( cut -c1 "$BATTERY_DEVICE"/status