9 lines
225 B
Plaintext
9 lines
225 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||
|
down) printf "no wifi" ;;
|
||
|
up)
|
||
|
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "no ip"
|
||
|
# && printf "$icon $(iwgetid -r)" \
|
||
|
esac
|