read events from khal

This commit is contained in:
2021-07-13 15:07:32 +02:00
parent ab5dddd743
commit b8d3e65018
2 changed files with 6 additions and 0 deletions

View File

@@ -131,6 +131,9 @@ def conf2top(top):
except OSError as e:
print("Warning: Error opening", top["file"], file=sys.stderr)
if "command" in top:
body = subprocess.run(top["command"], shell=True, text=True, capture_output=True).stdout
return Top(top["title"], sender, body, protostub)
if __name__ == "__main__":

3
list_termine.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
khal list --day-format "" --format "* {start} {title}" -a calendars_fsmi today 7d