Migration to ayu.
This commit is contained in:
parent
b6e7de0e5d
commit
62c4507e7e
8 changed files with 68 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue