waybar: update config, optimize spacings

This commit is contained in:
Konstantin Koslowski 2021-07-24 08:25:43 +02:00
parent 6baf09b068
commit 93bf3cd7ea
4 changed files with 138 additions and 100 deletions

View file

@ -49,11 +49,11 @@ for i in range(len(title)):
## ongoing
if ts_start < ts_now:
if ts_start < ts_now and ts_now < ts_end:
text = f"{t_start[1]} - {t_end[1]} {t}"
text = f"{t_start[1]}-{t_end[1]} {t}"
alt = "now"
## upcoming
elif text == "-":
text = f"{t_start[1]} - {t_end[1]} {t}"
text = f"{t_start[1]}-{t_end[1]} {t}"
alt = "today"
line = f"{t_start[1]} - {t_end[1]}: {t}"
tooltip += f"\n{line}"