waybar/calendar: Fix number of today’s events
This was broken for multiline descriptions.
This commit is contained in:
parent
1fcecb1f64
commit
7b473dad3a
|
@ -238,7 +238,7 @@ in
|
||||||
return completed.stdout.decode("utf-8")
|
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()
|
events_2d = khal(["list", "today", "tomorrow", "-df", "<b>{name}, {date}</b>"]).rstrip()
|
||||||
|
|
||||||
if len(events_today) == 1 and events_today[0] == "No events":
|
if len(events_today) == 1 and events_today[0] == "No events":
|
||||||
|
|
Loading…
Reference in a new issue