Networkwidget: Fix btlow.
This commit is contained in:
parent
93a6e11be9
commit
1aac1a859b
|
@ -19,7 +19,7 @@ function networkwidget() {
|
||||||
|
|
||||||
if [[ ${bat} != "" ]]; then
|
if [[ ${bat} != "" ]]; then
|
||||||
btinfo+=" ${bat}%"
|
btinfo+=" ${bat}%"
|
||||||
[[ ${bat} -lt ${_bt_lowest} ]] && _bt_lowest=bat
|
[[ ${bat} -lt ${_bt_lowest} ]] && _bt_lowest=${bat}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_bts+=("${btinfo}")
|
_bts+=("${btinfo}")
|
||||||
|
@ -28,7 +28,7 @@ function networkwidget() {
|
||||||
if [[ ${_bts} != "" ]]; then
|
if [[ ${_bts} != "" ]]; then
|
||||||
icon=""
|
icon=""
|
||||||
|
|
||||||
if [[ ${_bt_lowest} != "" ]] && [[ ${_bt_lowest} -lt 21 ]]; then
|
if [[ ${_bt_lowest} -lt 21 ]]; then
|
||||||
class="btlow"
|
class="btlow"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue