cleanup: cleanup battery display rules in dwmbar

This commit is contained in:
swytch 2020-06-25 18:19:14 +02:00
parent f1c90afdaf
commit 9bae7e6403
1 changed files with 3 additions and 3 deletions

View File

@ -47,11 +47,11 @@ status() { \
do
if [ "$AC_ON" = 0 ]; then
case "$(cat "$x")" in
10[0-9]|101) printf "" ;;
10[1-9]) printf "" ;;
100|9[0-9]) printf " $(cat "$x")%%" ;;
8[0-9]|7[0-9]) printf " $(cat "$x")%%" ;;
6[0-9]|5[0-9]) printf " $(cat "$x")%%" ;;
4[0-9]|3[0-9]) printf " $(cat "$x")%%" ;;
6[0-9]|5[0-9]|4[0-9]) printf " $(cat "$x")%%" ;;
3[0-9]|2[0-9]) printf " $(cat "$x")%%" ;;
*) printf " $(cat "$x")%%" ;;
esac
else