diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-11-30 22:40:58 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-11-30 22:40:58 +0300 |
commit | 98e9007ddfb95909509344ed09cadf127bda03eb (patch) | |
tree | 516507249f3d996d73643f46aac0e933ad9e87f0 /dotfiles/.local/bin | |
parent | b017efea682270c1402e54ac452ea649d6f88eba (diff) | |
download | swayrice-98e9007ddfb95909509344ed09cadf127bda03eb.tar.gz swayrice-98e9007ddfb95909509344ed09cadf127bda03eb.zip |
bar4ds: update sysfs path for DS4 battery stats
Diffstat (limited to 'dotfiles/.local/bin')
-rwxr-xr-x | dotfiles/.local/bin/bards4battery | 4 |
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" |