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