From 0f1cda00586a3fdf9a01f743c13e4f7681ab4dc3 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 5 Jan 2025 14:30:16 +0300 Subject: [PATCH] Swayscript: Fix networkwidget nmcli command check. --- package/swayscript/script/NetworkWidget.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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