Write in rust with Ratatui
git clone https://github.com/maraloon/timer-tui.git
cd timer-tui
cargo install --path=.
timer-tui 5
timer-tui 5s
timer-tui 5m
timer-tui 5h
q
- Quite
p
- Pause
add alias for sh so u can use t tea
or t 5m
t() {
local template=$1
local message=$2
if [ $template = "tea" ]; then
timer-tui 10m
message="Tea"
elif [ $template = "bath" ]; then
timer-tui 6m
message="Bath"
else
timer-tui $1
if [ -z $message ]; then
message="It's time to stop!"
fi
fi
notify-send "Timer" $message
}
Inspired by timer-bin