I'm looking for an app to organize my daily tasks in different countdown timers similar to the one found at www.timeanddate.com/timer/
Features I'm looking for would be:
- runs in terminal bash or zsh
- multiple independent countdown timers
- plays a sound or notification display once a timer runs out
Please note that timetracking is not an important feature, just the countdown is enough.
Thank you.
From terminal use the "at" command to set your timer, "at" is very flexible for it can be used with both absolute and relative time (for more info:
man at
):"notify-send" will place a notification on your desktop
(feel free to replace it with i.e. "aplay" to make a sound instead of a notification).
You can combine tmux or screen with termdown.
Termdown is an ncurses timer.
http://www.slashgeek.net/2016/10/25/termdown-cli-countdown-timer-stopwatch/ shows how termdown works.
tmux and screen allow you to run multiple countdowns at once.
I'd make scripts like
And, I'll execute
pomodoro
in a tmux or screen window. That way, I can create multiple countdowns.Do you want notifications? You can combine notification commands with termdown, too.
I'd set up multiple tmux windows for specific timers in advance.
There is a bash script here in Ask Ubuntu called multi-timer
multi-timer
Progress bar displayFeatures
Visit the link above for screenshots and bash code.
Heres a shell function have come up with today to solve this exact problem for myself. I do happen to think that it works rather well. Full usage instructions are included in the comments.
updated:
Now requires a new dependancy,
termdown
, for displaying a countdown timer in the terminal.If you want to use this shell function as a script, then just copy paste it into a new file with the
#!/bin/sh
shebang as line 1. And then at the end of the file call the function astimer "$@"
to pass all the cmdline arguments into it.Hopefully that addresses the previously raised criticism.