27 May 2017
A Unix command line pomodoro timer.
./pomodoro will start a pomodoro timer that will last, by default, for 25
pomodoro is supplied with an argument, it will last that number of
minutes. For example, if you wanted a pomodoro that lasted 15 minutes, you would
30 seconds before the pomodoro is about to finish, it will use
send a notification saying that there are "30 seconds left".
It's also possible, thanks to the command line, to use this timer in conjunction with other programs. This example will lock your computer (if you're using the i3 window manager) once the pomodoro has ended.
./pomodoro && i3lock
Thanks to the
pomodoro outputting to
stdout, as explained below, you can log
the number of pomodoros you have done to a file.
You can combine these two things to log and lock.
./pomodoropomodoro_log.txt && i3lock
pomodoro terminates, whether that is naturally or with Ctrl+C, then
it will output to
stdout in the following format:
Therefore, the three sections are
DATE:TIME:SECONDS. The date-time is the time
at which the pomodoro started and
SECONDS is the number of seconds that the
pomodoro lasted for.
GNU General Public License Version 3