diff --git a/modules/bar/scripts/Network.sh b/modules/bar/scripts/Network.sh index 447278e..f29b22f 100755 --- a/modules/bar/scripts/Network.sh +++ b/modules/bar/scripts/Network.sh @@ -21,7 +21,7 @@ if printf "%s\n" "${ITYPES[@]}" | grep -qx "Ethernet"; then echo "󰈀 " elif printf "%s\n" "${ITYPES[@]}" | grep -qx "Wi-Fi"; then if [ -x "/usr/bin/nmcli" ]; then - CONNECTION="$(nmcli -f DEVICE,ACTIVE,SSID,SIGNAL dev wifi | grep yes | awk '{print $4}')" + CONNECTION="$(nmcli -f DEVICE,ACTIVE,SSID,SIGNAL dev wifi | grep yes | awk '{print $NF}')" if [[ -z "$CONNECTION" ]]; then echo "󰤭 " elif (( CONNECTION > 80 )); then