From 9ac816142746fa8424435b8bb56c99126d69256d Mon Sep 17 00:00:00 2001 From: "Rieger, Simon" Date: Mon, 3 Jul 2023 09:43:42 +0200 Subject: [PATCH] fix khal --- dot_config/waybar/executable_waybar-khal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dot_config/waybar/executable_waybar-khal.py b/dot_config/waybar/executable_waybar-khal.py index 65d2b6e..5f4c6a3 100644 --- a/dot_config/waybar/executable_waybar-khal.py +++ b/dot_config/waybar/executable_waybar-khal.py @@ -9,7 +9,10 @@ data = {} today = datetime.date.today().strftime("%Y-%m-%d") -output = subprocess.check_output("khal list now 7days --format \"{start-end-time-style} {title}\"", shell=True).decode("utf-8") +next_week = (datetime.date.today() + + datetime.timedelta(days=10)).strftime("%Y-%m-%d") + +output = subprocess.check_output("khal list now " + next_week + " --format \"{start-end-time-style} {title}\"", shell=True).decode("utf-8") lines = output.split("\n") new_lines = []