From 7d34c5348a85e9393a8dfd7a3c094dd27b08f935 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Sun, 23 Jun 2024 22:58:43 +0100 Subject: [PATCH] Attempt to fix battery usage for devices such as the PB Pro. --- dotfiles/.local/bin/sb-battery | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/sb-battery b/dotfiles/.local/bin/sb-battery index ccb939a9..8c79516b 100755 --- a/dotfiles/.local/bin/sb-battery +++ b/dotfiles/.local/bin/sb-battery @@ -4,7 +4,8 @@ # to charge status (🔌 for plugged up, 🔋 for discharging on battery, etc.). # 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. [ -n "${capacity+x}" ] && printf " " # Sets up the status and capacity