cleanup: cleanup battery display rules in dwmbar
This commit is contained in:
parent
f1c90afdaf
commit
9bae7e6403
@ -47,11 +47,11 @@ status() { \
|
|||||||
do
|
do
|
||||||
if [ "$AC_ON" = 0 ]; then
|
if [ "$AC_ON" = 0 ]; then
|
||||||
case "$(cat "$x")" in
|
case "$(cat "$x")" in
|
||||||
10[0-9]|101) printf "" ;;
|
10[1-9]) printf "" ;;
|
||||||
100|9[0-9]) printf " $(cat "$x")%%" ;;
|
100|9[0-9]) printf " $(cat "$x")%%" ;;
|
||||||
8[0-9]|7[0-9]) printf " $(cat "$x")%%" ;;
|
8[0-9]|7[0-9]) printf " $(cat "$x")%%" ;;
|
||||||
6[0-9]|5[0-9]) printf " $(cat "$x")%%" ;;
|
6[0-9]|5[0-9]|4[0-9]) printf " $(cat "$x")%%" ;;
|
||||||
4[0-9]|3[0-9]) printf " $(cat "$x")%%" ;;
|
3[0-9]|2[0-9]) printf " $(cat "$x")%%" ;;
|
||||||
*) printf " $(cat "$x")%%" ;;
|
*) printf " $(cat "$x")%%" ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user