Migration to ayu.

This commit is contained in:
Bartek Stalewski 2022-10-30 13:53:34 +01:00
parent b6e7de0e5d
commit 62c4507e7e
8 changed files with 68 additions and 42 deletions

View file

@ -1,8 +1,8 @@
#!/bin/bash
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) printf "<span background='#770000'>no wifi</span>" ;;
down) printf "<span foreground='#000000' background='#ff3333'>no wifi</span>" ;;
up)
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span background='#770000'>no ip</span>"
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span foreground='#000000' background='#ff3333'>no ip</span>"
# && printf "$icon $(iwgetid -r)" \
esac