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"