statusbar scripts tweaking.
This commit is contained in:
parent
fea1261796
commit
59eadee198
3 changed files with 5 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) printf "^c#eeeeee^^b#005577^\ue63e no wifi^d^" ;;
|
||||
down) printf "^c#161616^^b#fd4285^\ue63e no wifi^d^" ;;
|
||||
up)
|
||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
||||
&& printf "\ue63e $(iw dev wlan0 info | awk '/ssid/ {print $2}')" \
|
||||
|| printf "^c#eeeeee^^b#005577^\ue63e no ip^d^" ;;
|
||||
|| printf "^c#161616^^b#fd4285^\ue63e no ip^d^" ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue