waybar/calendar: Fix number of today’s events

This was broken for multiline descriptions.
upower
Simon Bruder 2021-07-29 06:31:59 +02:00
parent 1fcecb1f64
commit 7b473dad3a
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 1 deletions

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":