Minimal Timer
A minimalist zeroconfig command-line timer with smart time parsing and system integration.
✨ Features
- 🕐 Smart time parsing - Natural language input:
10m,1h 30s,2d 5h - 📝 Optional labels - Name your timers with
-nflag - 🔄 Sync mode - Loop timer with beep using
-syncflag - 💤 Sleep integration - Auto-sleep system (
-s) or display (-sd) when done - 🚀 Execute command - Run any command when timer finishes (
-e "say done") - 📋 Multiple timers - Run multiple timers and list them with
-ls - 🗂️ Groups -
-g/--group(default group name:default, like a primary group) - 🎛️ Batch control - stop/pause/resume/reset all or per group;
--adjustto add/subtract remaining time - ⚡ Minimal output - Clean, distraction-free countdown
- 🔔 Audio notification - Bell sound on completion
- 🌍 Universal - Works in bash, zsh, fish, and other shells
- 🔍 Spotlight support - Launch from macOS Spotlight
📦 Installation
🐍 PyPI (Universal)
pip install minimal-timer
🍺 Homebrew (macOS)
brew install dandaniel5/timer/timer
📸 Snap Store (Linux)
snap install minimal-timer
🪟 Winget (Windows)
winget install DanilKodolov.MinimalTimer
Manual Installation
git clone https://github.com/dandaniel5/minimal-timer.git
cd minimal-timer
chmod +x timer
cp timer /usr/local/bin/
macOS Spotlight Integration
After installation, you can also launch Timer from Spotlight:
- Press
Cmd + Space - Type "Timer"
- Press Enter
🚀 Usage
Basic Examples
# Simple timer (defaults to minutes)
timer 5
# Output: 4m 59s
# With time units
timer 10m
timer 1h 30m
timer 2d 5h 30m
# With a label
timer 25m -n "Pomodoro"
# Output: Pomodoro 24m 59s
# Sleep system after timer
timer 1h -s
# Sleep display only after timer
timer 30m -sd
# Execute command after timer
timer 5m -e "say 'Timer finished'"
timer 10m -e "open https://google.com"
# Sync mode (beep every 3 minutes)
timer 3m -sync
# List all running timers
timer -ls
# List only timers in a group
timer -ls -g work
# Start in a group (default group is "default" if -g omitted)
timer 45m -n "Standup" -g work
Groups and managing running timers
# Stop every running timer (kills process, removes state)
timer --stop-all
# Stop all timers in one group
timer --stop-group work
# Stop one named timer (optional -g to disambiguate)
timer --stop -n "Pomodoro" -g work
# Pause / resume (works while timer runs in another terminal)
timer --pause-all
timer --pause-group work
timer --pause -n "Pomodoro"
timer --resume-all
timer --resume-group work
timer --resume -n "Pomodoro"
# Reset to the original duration (needs internal duration_seconds; new timers have it)
timer --reset-all
timer --reset-group work
timer --reset -n "Pomodoro"
# Add or subtract from remaining time (+/- uses the same time parser as starting a timer)
timer --adjust +10d -n "Vacation"
timer --adjust -5m -n "Pomodoro" -g work
# Aliases: same as --stop-all / --stop-group
timer --clear-all
timer --clear-group work
Advanced Usage
# Run multiple timers in background
timer 1h -n "Meeting" &
timer 25m -n "Pomodoro" &
timer 10m -n "Break" &
# Check running timers
timer -ls
# Output:
# Running timers:
# [default] Meeting 59m 30s (running) pid=...
# [default] Pomodoro 24m 15s (running) pid=...
# [default] Break 9m 45s (running) pid=...
# Complex duration with sleep
timer 1w 2d 3h -n "Vacation countdown" -sd
Supported Time Units
| Unit | Aliases | Example |
|---|---|---|
| Seconds | s, sec, second, seconds |
30s |
| Minutes | m, min, minute, minutes |
10m (default) |
| Hours | h, hour, hours |
2h |
| Days | d, day, days |
3d |
| Weeks | w, week, weeks |
1w |
| Years | y, year, years |
1y |
Command-Line Options
Run timer --help for the full list (groups, --stop-all, --pause-group, --adjust, etc.).
🎯 Use Cases
Pomodoro Technique
timer 25m -n "Work" && timer 5m -n "Break"
Meeting Reminder
timer 1h -n "Team Meeting" -s
Screen Break
timer 20m -n "Eye Rest" -sd
Cooking
timer 12m -n "Pasta" &
timer 15m -n "Sauce" &
timer -ls
🛠️ Requirements
- Python 3.6+
- macOS (for sleep functionality)
📝 How It Works
- Parsing: The timer uses regex to parse natural language time input, supporting multiple units in a single command
- Countdown: Updates about every 120ms; the process re-reads its JSON state so pause/resume/adjust from another shell apply without signals
- Tracking: Saves timer info to temp directory (
/tmp/smart_timers/) for multi-timer support - Sleep Integration: Uses macOS
pmsetcommands to trigger system or display sleep - Cleanup: Automatically removes timer info on completion or cancellation
🤝 Contributing
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
📄 License
GPL v3 License - see LICENSE file for details.
👤 Author
Created by Danil Kodolov
Tip: Add alias t='timer' to your shell config for even faster access! 🚀
Metadata
Release files for minimal-timer 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| minimal_timer-1.0.7.tar.gz | 9.7 kB | Without provenance | Details for minimal_timer-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| minimal_timer-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for minimal_timer-1.0.7-py3-none-any.whl |
Total release size: 19.7 kB
Release files / minimal_timer-1.0.7.tar.gz
| Download URL | minimal_timer-1.0.7.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a37860a843bfd78d64c7650ae69c80912b9f89876b2ff4df7675566f3eccb0c
|
|
BLAKE2b-256 checksum How to use checksums |
eeb6a80b74f2290690f310abf5f5cd973dbfcb0405e923f49854124bc8912457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / minimal_timer-1.0.7-py3-none-any.whl
| Download URL | minimal_timer-1.0.7-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8533998885a291dc650bd6992124a3fdf94ace8ff332e7b6784ec643c0e37941
|
|
BLAKE2b-256 checksum How to use checksums |
7e56f5bf6f709bf544552e419dee19371d20e255dfd954771bdf9d89cf5ab28d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for minimal-timer 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.