diff --git a/system-info/system-info-Linux.sh b/system-info/system-info-Linux.sh index 024e0b5..043abaf 100755 --- a/system-info/system-info-Linux.sh +++ b/system-info/system-info-Linux.sh @@ -28,7 +28,7 @@ else } fi -if [[ "$(acpi -b 2>&1 /dev/null)" != "No support for device type: power_supply" ]]; then +if upower -e | grep 'BAT' 2> /dev/null; then function get_battery { local output=$(acpi -b) local charging=$(echo $output | awk '{ print $3 }')