4 ms·
termdown is worth a mention https://github.com/trehn/termdown https://github.com/trehn/termdown It's a countdown timer that uses figlet to render the countdown
by dmos62 6y ago
termdown is worth a mention https://github.com/trehn/termdown https://github.com/trehn/termdown
It's a countdown timer that uses figlet to render the countdown. Here's a pomodoro timer script I use fairly often (`bup` is another script that emits a low pitched beep (a bup)):
#!/bin/bash
if [ $# -ne 1 ]; then
echo $0: usage: pomodoro time_expr
exit 1
fi
TIME_EXPR=$1
get_time ()
{
date "+%H:%M"
}
START=$(get_time)
termdown --font big --critical 0 $TIME_EXPR \
&& bup
END=$(get_time)
echo "$START - $END"