nmcli

nmcli - command-line tool for controlling NetworkManager

nmcli -f state g | tail -1
# returns
connected

Possible iconography for nmCont script

✓ connected
? connecting
✗ asleep