Less is more.

This commit is contained in:
Bartek Stalewski 2022-10-18 11:28:20 +02:00
parent 5fd7719e33
commit 0f49c1f23b
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
icon='\uf1eb '
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)
[ -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)" \
esac

View File

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