dotfiles/_desktop/_scripts/sb-network

9 lines
225 B
Plaintext
Raw Normal View History

2023-02-09 01:23:49 +01:00
#!/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