Networkwidget: Fix btlow.

This commit is contained in:
Dmitry Voronin 2024-12-19 05:20:04 +03:00
parent 93a6e11be9
commit 1aac1a859b
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -19,7 +19,7 @@ function networkwidget() {
if [[ ${bat} != "" ]]; then
btinfo+=" ${bat}%"
[[ ${bat} -lt ${_bt_lowest} ]] && _bt_lowest=bat
[[ ${bat} -lt ${_bt_lowest} ]] && _bt_lowest=${bat}
fi
_bts+=("${btinfo}")
@ -28,7 +28,7 @@ function networkwidget() {
if [[ ${_bts} != "" ]]; then
icon="󱛃"
if [[ ${_bt_lowest} != "" ]] && [[ ${_bt_lowest} -lt 21 ]]; then
if [[ ${_bt_lowest} -lt 21 ]]; then
class="btlow"
fi
fi