move task hooks to XDG_CONFIG_DIR

This commit is contained in:
Alex Kelly 2021-10-13 13:04:48 -04:00
parent fbf3d2b0fe
commit 8053f8866f
4 changed files with 186 additions and 1 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/python3
import sys
import json
import subprocess
for line in sys.stdin:
if '{' in line:
entry = json.loads(line.strip())
print(line)
message = f"Added: \"{entry['description']}\" to: {entry['project']}"
subprocess.call(['jrnl', message])