The wifi icon alone is quite annoying.
This commit is contained in:
parent
2b09832b89
commit
3bb80ba30f
1 changed files with 1 additions and 1 deletions
|
@ -4,6 +4,6 @@ icon='\uf1eb '
|
||||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||||
down) printf "<span background='#770000'>$icon no wifi</span>" ;;
|
down) printf "<span background='#770000'>$icon no wifi</span>" ;;
|
||||||
up)
|
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)" \
|
# && printf "$icon $(iwgetid -r)" \
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue