Last active
July 15, 2019 17:37
-
-
Save rmporsch/bc736cbbdc333c38dc40 to your computer and use it in GitHub Desktop.
taskwarrior checks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These are some scripts to automatically check for active and undone tasks in taskwarrior