Skip to content

Instantly share code, notes, and snippets.

@rmporsch
Last active July 15, 2019 17:37
Show Gist options
  • Save rmporsch/bc736cbbdc333c38dc40 to your computer and use it in GitHub Desktop.
Save rmporsch/bc736cbbdc333c38dc40 to your computer and use it in GitHub Desktop.
taskwarrior checks
#!/bin/bash
daily='$(readlink -f daily-startup.sh)'
min='$(readlink -f minreminder.sh)'
line="@reboot $daily"
(crontab -l; echo "$line" ) | crontab -
line="0,30 9-19 * * 1-5 $min"
(crontab -l; echo "$line" ) | crontab
#!/bin/bash
num=$((`task +DUE count`))
todaynum=$((`task +DUE +TODAY count`))
if [ $num -gt "1" ]; then
if [[ $todaynum -ge "1" ]]; then
notify-send "Taskwarrior" "There are $num tasks due, and $todaynum for today"
else
notify-send "Taskwarrior" "There are $num tasks due"
fi
else
notify-send "Taskwarrior" "No tasks due. Something must be wrong"
canberra-gtk-play --file=/usr/share/sounds/ubuntu/stereo/dialog-question.ogg
fi
#!/bin/bash
num=`task active | wc -l`
if [ $num -gt "1" ]
then
notify-send "Active Tasks" "`task active | tail -n +3 | head -n -1`"
else
notify-send "No Active Tasks" "What the hell are you doing?"
canberra-gtk-play --file=/usr/share/sounds/ubuntu/stereo/dialog-question.ogg
fi
@rmporsch
Copy link
Author

rmporsch commented Jul 6, 2015

These are some scripts to automatically check for active and undone tasks in taskwarrior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment