2022-12-26 14:20:37 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
tasks=$(task status:pending -notified due export | jq -r '.[].description')
|
|
|
|
[ -z "$tasks" ] && exit 0
|
2023-02-22 19:17:52 +01:00
|
|
|
while read task; do
|
2022-12-26 14:20:37 +01:00
|
|
|
notify-send 'A task is due.' "$task"
|
2023-02-22 19:17:52 +01:00
|
|
|
done <<< "$(echo $tasks)"
|
2023-01-03 17:17:05 +01:00
|
|
|
task rc.bulk=0 rc.confirmation=off status:pending -notified due modify +notified
|