From 98e9007ddfb95909509344ed09cadf127bda03eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 30 Nov 2023 22:40:58 +0300 Subject: bar4ds: update sysfs path for DS4 battery stats --- dotfiles/.local/bin/bards4battery | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dotfiles/.local/bin') 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 "%s%%" "$percentage" -- cgit v1.2.3