The wifi icon alone is quite annoying.
This commit is contained in:
parent
2b09832b89
commit
3bb80ba30f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user