A Rust-based command-line stopwatch, alarm clock, and Pomodoro timer.
- Rust
- Cargo
Clone the repository
git clone https://github.com/lytexdev/rclock.git
cd rclockBuild the application
cargo build --releaseThe binary will be available in ./target/release/rclock.
To start the stopwatch:
rclock stopwatchWith color options:
rclock stopwatch --color redAvailable colors: red, green, blue, yellow, cyan, magenta, white.
To set an alarm in seconds:
rclock alarm 60To set an alarm at a specific time (HH:MM format):
rclock alarm 14:30With color options:
rclock alarm 60 --color blueThe alarm will display a big "ALARM UP!" text and play a sound when triggered. Press Ctrl+C to exit.
The Pomodoro timer allows you to manage work and break intervals.
To start a single Pomodoro cycle (e.g., 25 minutes work, 5 minutes break):
rclock pomodoro --work 25 --break 5To repeat the Pomodoro timer multiple times (e.g., 3 cycles):
rclock pomodoro --work 25 --break 5 --repeats 3With color options:
rclock pomodoro --work 25 --break 5 --repeats 3 --color greenThe timer will:
- Alternate between "Work" and "Break" phases
- Display a countdown for each phase
- Play a sound at the end of each phase
- Automatically transition to the next cycle
Press Ctrl+C to exit at any time.
This project is licensed under MIT. See the LICENSE file for details.