move task hooks to XDG_CONFIG_DIR
This commit is contained in:
parent
fbf3d2b0fe
commit
8053f8866f
4 changed files with 186 additions and 1 deletions
12
dot_config/task/hooks/disabled/DISABLED-on-add.jrnl
Executable file
12
dot_config/task/hooks/disabled/DISABLED-on-add.jrnl
Executable 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])
|
Loading…
Add table
Add a link
Reference in a new issue