scripts/task-notify
2023-02-22 19:17:52 +01:00

9 lines
281 B
Bash
Executable File

#!/bin/bash
tasks=$(task status:pending -notified due export | jq -r '.[].description')
[ -z "$tasks" ] && exit 0
while read task; do
notify-send 'A task is due.' "$task"
done <<< "$(echo $tasks)"
task rc.bulk=0 rc.confirmation=off status:pending -notified due modify +notified