Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


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

Hosted by candycanearter on 2026-01-08 00:00:00
Download or Listen

This show has been flagged as Clean by the host.


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

Provide feedback on this episode.

HPR Comments

Mastodon Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.