Merge pull request #245 from dev-onejun/battery-selections

UPDATE: the power_supply device selection
This commit is contained in:
Ethan Edwards 2024-01-16 14:08:03 -05:00 committed by GitHub
commit ac097bbe5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ source $current_dir/utils.sh
linux_acpi() { linux_acpi() {
arg=$1 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 if [ ! -x "$(which acpi 2> /dev/null)" ];then
case "$arg" in case "$arg" in
status) status)