A simple, functional countdown timer for the terminal written in Rust.
This is a lightweight countdown timer that runs in your terminal. It displays the remaining time with color formatting and can parse various time formats including hours, minutes, and seconds.
- Parse time in formats:
30s,5m,2h,1h30m,1h30m45s - Color-coded output (green for running, yellow for final 10 seconds, red when done)
- Clear terminal display
- System beep when timer completes
cargo run -- 5m# 30 seconds
cargo run -- 30s
# 5 minutes
cargo run -- 5m
# 2 hours
cargo run -- 2h
# Combined format
cargo run -- 1h30m45s
cargo run -- 2m30s- Make sure you have Rust installed: https://rustup.rs/
- Clone this repository
- Run
cargo build --release - The binary will be in
target/release/countdown-timer
cargo run -- <time>Where <time> is a duration string like 5m, 30s, 1h30m, etc.