diff --git a/package/swayscript/script/NetworkWidget.sh b/package/swayscript/script/NetworkWidget.sh index a654fac..d8b61a6 100644 --- a/package/swayscript/script/NetworkWidget.sh +++ b/package/swayscript/script/NetworkWidget.sh @@ -36,7 +36,7 @@ function networkwidget() { icon="󱚿" fi - if ! $(command -v nmcli); then + if ! command -v nmcli &> /dev/null; then class="disabled" icon="󱚼" elif [[ ${internet} != "full" ]]; then