scripts/task-notify

9 lines
233 B
Plaintext
Raw Normal View History

2022-12-26 14:20:37 +01:00
#!/bin/bash
tasks=$(task status:pending -notified due export | jq -r '.[].description')
[ -z "$tasks" ] && exit 0
for task in $tasks; do
notify-send 'A task is due.' "$task"
done
task status:pending -notified due modify +notified