… with desktop notifications from Taskwarrior

Script it

  • send only tasks with high priority list as desktop notification

task_notify_send.sh

1#!/usr/bin/env bash
2
3export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$EUID/bus"
4notify-send -u critical  "$(for ID in $(task _ids priority:V -WAITING -PARENT); do echo [$ID]$(task $ID export | jq -r '.[].description') ; done)"

Schedule it

  • schedule task notification as systray message every 20 minutes in Crontab
1# crontab -l
2/20 * * * * ~/.local/bin/task_notify_send.sh

Sources