Lightweight, fully-featured timer program written entirely in bash
- Both countup and countdown timers
- Recurring timer function
- Smart time parsing
- Persistent across reboots (and even computers if .timer file is synced)
- Low resource usage (files are changed only on commands and timer expiry)
- Very few dependencies
- Multiple alarm functions (sound, custom script, and more)
- Single undo
(Demo goes here)
- entr
- sed Optional
- libnotify (to get notifications when timer expires)
git clone [email protected]:vividn/timer.git
cd timer
sudo ln -s $PWD/timer /usr/local/bin/timer
Timers are issued commands with the following syntax
timer [n] <command> <args>
, where n
is the timer number. If n
is omitted timer 1 is assumed.
Command | Action | Args |
---|---|---|
set ,s |
Set and starts a countdown timer | Duration |
pause ,stop |
Pause a currently running timer | |
start ,go ,play |
Resume a paused timer or start a countup timer | |
toggle ,p ,pp |
Toggle pause state of timer | |
zero , z |
Reset the timer to +00:00 | |
recur , r |
Set and start a recurring countdown timer | Duration |
from , until , til , to |
start a timer relative to the time specified | Time |
plus , + , add |
Add Duration to the timer | Duration |
minus , - , sub |
Subtract Duration from the timer | Duration |