Colors.
This commit is contained in:
parent
f9559a2fb1
commit
a2299dc9c0
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||||
down) printf "^c#161616^^b#fd4285^\ue63e no wifi^d^" ;;
|
down) printf "^c#ffffff^^b#770000^\ue63e no wifi^d^" ;;
|
||||||
up)
|
up)
|
||||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
||||||
&& printf "\ue63e $(iw dev wlan0 info | grep 'ssid ' | cut -d' ' -f2-)" \
|
&& printf "\ue63e $(iw dev wlan0 info | grep 'ssid ' | cut -d' ' -f2-)" \
|
||||||
|| printf "^c#161616^^b#fd4285^\ue63e no ip^d^" ;;
|
|| printf "^c#ffffff^^b#770000^\ue63e no ip^d^" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue