aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdotfiles/.local/bin/bards4battery4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/.local/bin/bards4battery b/dotfiles/.local/bin/bards4battery
index 15ffb99..6058c19 100755
--- a/dotfiles/.local/bin/bards4battery
+++ b/dotfiles/.local/bin/bards4battery
@@ -1,7 +1,7 @@
#!/bin/sh
-if [ -f /sys/class/power_supply/sony_controller_battery_*/capacity ]; then
- percentage=$(cat /sys/class/power_supply/sony_controller_battery_*/capacity)
+if [ -f /sys/class/power_supply/ps-controller-battery-*/capacity ]; then
+ percentage=$(cat /sys/class/power_supply/ps-controller-battery-*/capacity)
if [ percentage -lt 40 ]; then
printf "<span color=\"#b2872f\">%s%%</span>" "$percentage"