More tweaking with statusbar.

This commit is contained in:
Bartek Stalewski 2022-04-15 20:17:46 +02:00
parent 4ff14f25fd
commit c72f3c4a1c
6 changed files with 16 additions and 15 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) printf " ^c#ffffff^^b#770000^ no wifi^d^" ;;
down) printf "^c#ffffff^^b#770000^no wifi^d^" ;;
up)
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
&& printf "$(iw dev wlan0 info | grep 'ssid ' | cut -d' ' -f2-)" \