···88 fi
99 wifi="disconnected (0%)"
1010 if nmcli dev show wlp0s20f3 | grep GENERAL.STATE | grep -q connected; then
1111- wifiname="$(nmcli dev show wlp0s20f3 | awk '/GENERAL.CONNECTION/ {print $2}')"
1111+ wifiname="$(nmcli -t dev show wlp0s20f3 | grep GENERAL.CONNECTION | cut -d ':' -f 2)"
1212 wifistrength="$(nmcli dev show wlp0s20f3 | awk '/GENERAL.STATE/ {print $2}')"
1313 wifi="$wifiname ($wifistrength%)"
1414 fi