From 1aac1a859bbc05ce503b41fe87c8edeeb7eb3198 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 19 Dec 2024 05:20:04 +0300 Subject: [PATCH] Networkwidget: Fix btlow. --- package/swayscript/script/NetworkWidget.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/swayscript/script/NetworkWidget.sh b/package/swayscript/script/NetworkWidget.sh index e7962b41..5d525e49 100644 --- a/package/swayscript/script/NetworkWidget.sh +++ b/package/swayscript/script/NetworkWidget.sh @@ -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