waybar/calendar: Fix number of today’s events

This was broken for multiline descriptions.
This commit is contained in:
Simon Bruder 2021-07-29 06:31:59 +02:00
parent 1fcecb1f64
commit 7b473dad3a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -238,7 +238,7 @@ in
return completed.stdout.decode("utf-8")
events_today = khal(["list", "today", "today", "-df", ""]).rstrip().split("\n")
events_today = khal(["list", "today", "today", "-df", "", "-f", "{title}"]).rstrip().split("\n")
events_2d = khal(["list", "today", "tomorrow", "-df", "<b>{name}, {date}</b>"]).rstrip()
if len(events_today) == 1 and events_today[0] == "No events":