The wifi icon alone is quite annoying.

This commit is contained in:
Bartek Stalewski 2022-10-18 01:35:03 +02:00
parent 2b09832b89
commit 3bb80ba30f

View File

@ -4,6 +4,6 @@ icon='\uf1eb '
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) printf "<span background='#770000'>$icon no wifi</span>" ;;
up)
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] && printf "$icon" || printf "<span background='#770000'>$icon no ip</span>"
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span background='#770000'>$icon no ip</span>"
# && printf "$icon $(iwgetid -r)" \
esac