scripts/task-notify
2023-01-03 17:17:05 +01:00

8 lines
263 B
Bash
Executable file

#!/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 rc.bulk=0 rc.confirmation=off status:pending -notified due modify +notified