aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-11-30 22:40:58 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-11-30 22:40:58 +0300
commit98e9007ddfb95909509344ed09cadf127bda03eb (patch)
tree516507249f3d996d73643f46aac0e933ad9e87f0
parentb017efea682270c1402e54ac452ea649d6f88eba (diff)
downloadswayrice-98e9007ddfb95909509344ed09cadf127bda03eb.tar.gz
swayrice-98e9007ddfb95909509344ed09cadf127bda03eb.zip
bar4ds: update sysfs path for DS4 battery stats
-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"