From a43fd55235b17def0967528c0d6ef524c1d310a0 Mon Sep 17 00:00:00 2001 From: dev-onejun Date: Wed, 3 Jan 2024 11:21:25 +0900 Subject: [PATCH] UPDATE: the power_supply device selection --- scripts/battery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/battery.sh b/scripts/battery.sh index 86b9ac05..c2dabab7 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -7,7 +7,7 @@ source $current_dir/utils.sh linux_acpi() { arg=$1 - BAT=$(ls -d /sys/class/power_supply/BAT* | head -1) + BAT=$(ls -d /sys/class/power_supply/*) if [ ! -x "$(which acpi 2> /dev/null)" ];then case "$arg" in status)