diff --git a/rofi/rofi-wifi-menu.sh b/rofi/rofi-wifi-menu.sh index bff0161..33bede3 100755 --- a/rofi/rofi-wifi-menu.sh +++ b/rofi/rofi-wifi-menu.sh @@ -46,7 +46,7 @@ elif [ "$CHENTRY" = "Toggle Off" ]; then else # If the connection is already in use, then this will still be able to get the SSID - CHSSID=$(echo "$CHENTRY" | cut -d' ' -f1) + CHSSID=$(echo "$CHENTRY" | sed 's/ .*//') CURRSSID=$(echo "$CHENTRY" | grep '\*') if [ -n "$CURRSSID" ]; then nmcli con down "$CHSSID"