format: battery block simplification

This commit is contained in:
David JULIEN 2021-02-22 12:06:31 +01:00
parent e0e386c9dd
commit a2a86bf24e

View File

@ -42,10 +42,10 @@ do
status="" status=""
else else
case "$capacity" in case "$capacity" in
100|9[0-9]|8[0-9]) status="" ;; [8-9][0-9]) status="" ;;
7[0-9]|6[0-9]) status="" ;; [6-7][0-9]) status="" ;;
5[0-9]|4[0-9]) status="" ;; [4-5][0-9]) status="" ;;
3[0-9]|2[0-9]) status="" ;; [2-3][0-9]) status="" ;;
*) status="" ; notify;; *) status="" ; notify;;
esac esac
fi fi