From 404ce6eab6509a7b5f355c3552b2303541cbb318 Mon Sep 17 00:00:00 2001 From: dcarrillo Date: Fri, 4 Oct 2019 19:18:23 +0200 Subject: [PATCH] [polybar] Fix bug at nmcli_manager --- .config/polybar/scripts/nmcli_manager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/polybar/scripts/nmcli_manager b/.config/polybar/scripts/nmcli_manager index eded687..9173d10 100755 --- a/.config/polybar/scripts/nmcli_manager +++ b/.config/polybar/scripts/nmcli_manager @@ -47,7 +47,7 @@ function switch_connections() local name="$1" local status=$2 - if [[ "$status" == "UP" ]]; then + if [[ "$status" == "" ]]; then nmcli connection down "$name" else nmcli connection up "$name"