Count down for a specified duration and notify when complete.
timer [OPTIONS] DURATIONSimple countdown timer that waits for the specified duration and alerts you with an audio cue and desktop notification when the time is up.
The DURATION argument uses the same format as the sleep command, supporting multiple time units.
# Wait 5 seconds
timer 5
# Wait 5 minutes
timer 5m
# Wait 1 hour
timer 1h
# Wait 90 seconds (1.5 minutes)
timer 90s
# Wait 1.5 hours
timer 1h 30m
# Silent mode (no audio, notification only)
timer --silent 10m
timer -s 300
# Useful for reminders
timer 25m # Pomodoro technique
timer 8h # End of workday reminder
timer 3m # Tea steeping timerThe timer accepts any duration format supported by the sleep command:
- Numbers without suffix: seconds (e.g.,
5= 5 seconds) s: secondsm: minutesh: hoursd: days
You can combine multiple values: 1h 30m, 2m 30s
-h, --help: Show help message-s, --silent: Skip audio notification (desktop notification only)
brew install thiagowfx/pancake/pancake# Clone and add to PATH
git clone https://github.com/thiagowfx/pancake.git
export PATH="$PATH:$PWD/pancake/timer"-
Audio notification: Plays a system sound when timer completes
- macOS: Uses
afplaywith built-in Glass sound - Linux: Tries
paplay(PulseAudio) oraplay(ALSA) - Gracefully degrades if no audio system available
- macOS: Uses
-
Desktop notification: Shows notification with timer duration
- Integrates with the pancake
notifytool - Works on both Linux and macOS
- Integrates with the pancake
-
Silent mode: Option to disable audio while keeping desktop notification
-
Audio (optional):
- macOS: Built-in (uses
afplay) - Linux: PulseAudio (
paplay) or ALSA (aplay)
- macOS: Built-in (uses
-
Desktop notifications (optional):
- Requires the
notifytool from pancake - Falls back gracefully if not available
- Requires the
0: Timer completed successfully1: Invalid arguments or timer interrupted