hpr4549 :: [deprecated] Pomodoro Task Tool (pomotask.sh)

Going over a small bash script I used to use to help with tasks

Hosted by candycanearter on Thursday, 2026-01-08 is flagged as Clean and is released under a CC-BY-SA license.
bash, code, productivity, taskwarrior. (Be the first).

Listen in ogg, opus, or mp3 format. Play now:

Duration: 00:04:29
Download the transcription and subtitles.

Bash Scripting.

This is an open series in which Hacker Public Radio Listeners can share their Bash scripting knowledge and experience with the community. General programming topics and Bash commands are explored along with some tutorials for the complete novice.


lrest=0;
while true; do
    echo refreshing project list;
    tsk=$(task +PENDING _unique project | shuf);
    for x in $tsk;
    do
        echo proj:$x;
        dispmd="task proj:$x ready || task ready";
        [[ $lrest -eq 0 ]] && dispmd="task ready";
        timeout 1500 watch $dispmd;
        ((lrest=lrest+1));
        echo "begin break with enter...";
        read;
        resttime=5;
        if [[ $lrest -gt 3 ]]; then
            resttime=15;
            lrest=0;
        fi;
        while [[ $resttime -gt 0 ]]; do
            echo $resttime minute rest;
            sleep 60;
            ((resttime=resttime-1));
        done;
        echo "break over, enter to continue...";
        read;
    done;
done


Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?