read events from khal
This commit is contained in:
@@ -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
3
list_termine.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
khal list --day-format "" --format "* {start} {title}" -a calendars_fsmi today 7d
|
||||
Reference in New Issue
Block a user