statusbar scripts tweaking.

This commit is contained in:
Bartek Stalewski 2021-11-05 15:17:16 +01:00
parent fea1261796
commit 59eadee198
3 changed files with 5 additions and 5 deletions

View file

@ -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