Attempt to fix battery usage for devices such as the PB Pro.

This commit is contained in:
2024-06-23 22:58:43 +01:00
parent 6d6752217a
commit 7d34c5348a

View File

@@ -4,7 +4,8 @@
# to charge status (🔌 for plugged up, 🔋 for discharging on battery, etc.). # to charge status (🔌 for plugged up, 🔋 for discharging on battery, etc.).
# Loop through all attached batteries and format the info # Loop through all attached batteries and format the info
for battery in /sys/class/power_supply/BAT?*; do # for battery in /sys/class/power_supply/BAT?*; do # For standard devices, use this line instead.
for battery in /sys/class/power_supply/?*; do
# If non-first battery, print a space separator. # If non-first battery, print a space separator.
[ -n "${capacity+x}" ] && printf " " [ -n "${capacity+x}" ] && printf " "
# Sets up the status and capacity # Sets up the status and capacity