More statusbar customisation.

This commit is contained in:
Bartek Stalewski 2022-10-18 01:38:56 +02:00
parent eec100f304
commit 5fd7719e33
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -139,7 +139,7 @@ screens = [
func=lambda: subprocess.check_output("sb-battery").decode(), func=lambda: subprocess.check_output("sb-battery").decode(),
), ),
widget.Clock( widget.Clock(
format='/%d/ %H:%M:%S' format='/ [%d] %H:%M:%S'
), ),
widget.Systray(), widget.Systray(),
], ],