diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-07-10 10:19:02 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-07-10 10:19:02 +0200 |
commit | daa34e6cbc295c002a1b7d511c3a4ca8e3201ae0 (patch) | |
tree | 370831ecb58cb2344c337a169e7d8da7d5cf15cb | |
parent | Removed acpi depend (diff) | |
download | dwm-daa34e6cbc295c002a1b7d511c3a4ca8e3201ae0.tar.gz dwm-daa34e6cbc295c002a1b7d511c3a4ca8e3201ae0.tar.bz2 dwm-daa34e6cbc295c002a1b7d511c3a4ca8e3201ae0.zip |
Fixed charging battery functionality
-rwxr-xr-x | scripts/dwm-status | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status index 559a84d..ffd37e7 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -168,12 +168,12 @@ status() { \ 8[0-9]|7[0-9]) echo " $(cat $x)%" ;; 6[0-9]|5[0-9]) echo " $(cat $x)%" ;; 4[0-9]|3[0-9]) echo " $(cat $x)%" ;; - 2[0-9]|1[0-9]) if [ "$ac_adapter" == "on" ]; then + 2[0-9]|1[0-9]) if [ "$ac_adapter" == "Charging" ]; then echo " $(cat $x)%" else echo " $(cat $x)%" fi ;; - [0-9]) if [ "$ac_adapter" == "on" ]; then + [0-9]) if [ "$ac_adapter" == "Charging" ]; then echo " $(cat $x)%" else echo " $(cat $x)%" |