diff options
-rwxr-xr-x | scripts/dwm-status | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status index 0cf2498..b1671fa 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -169,8 +169,16 @@ 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]) echo " $(cat $x)%" ;; - [0-9]) echo " $(cat $x)%" ;; + 2[0-9]|1[0-9]) if [ "$ac_adapter" == "on" ]; then + echo " $(cat $x)%" + else + echo " $(cat $x)%" + fi ;; + [0-9]) if [ "$ac_adapter" == "on" ]; then + echo " $(cat $x)%" + else + echo " $(cat $x)%" + fi ;; esac done && echo "$delim" |