Change the way qtile handles colors in statusbar.
This commit is contained in:
parent
1b6c5cca0b
commit
3e706f9ca6
4 changed files with 20 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue