Change the way qtile handles colors in statusbar.

This commit is contained in:
Bartek Stalewski 2022-11-04 02:46:17 +01:00
parent 1b6c5cca0b
commit 3e706f9ca6
4 changed files with 20 additions and 13 deletions

View file

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