about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Mandura <webmaster@kevin-mandura.de>2024-03-30 13:52:39 +0100
committerKevin Mandura <webmaster@kevin-mandura.de>2024-03-30 13:52:39 +0100
commit236d9ab9efb3bca853374a81b641762a7aca7b07 (patch)
treebf3ec240a8118c00958b581f45fadeb5c0fc342c
parent3304a22dc751b8649b1a96a9ec205bede3179bf6 (diff)
downloaddwm-status-sh-236d9ab9efb3bca853374a81b641762a7aca7b07.tar.gz
dwm-status-sh-236d9ab9efb3bca853374a81b641762a7aca7b07.zip
Fix battery module
-rw-r--r--dwm-status.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm-status.sh b/dwm-status.sh
index 3b75c5b..9d2e035 100644
--- a/dwm-status.sh
+++ b/dwm-status.sh
@@ -436,7 +436,7 @@ module_battery() {
     [ -d "$CONFIG_POWER_SUPPLIES_DIR" ] || return
 
     # If no battery was found, return.
-    battery_dirs=$(find "${CONFIG_POWER_SUPPLIES_DIR}/" -maxdepth 1 -mindepth 1 -type d -iname "${CONFIG_BATTERY_PREFIX}*" -printf "%f\n")
+    battery_dirs=$(find "${CONFIG_POWER_SUPPLIES_DIR}/" -maxdepth 1 -mindepth 1 -type l -iname "${CONFIG_BATTERY_PREFIX}*" -printf "%f\n")
     [ -n "$battery_dirs" ] || return
 
     if [ "$1" = "force" ]; then