A simple, elegant, and highly customizable command-line clock written in Rust.
| Default | 12-Hour Mode |
|---|---|
![]() |
![]() |
| Font Change | Color Change |
|---|---|
![]() |
![]() |
| Size Change | Countdown |
|---|---|
![]() |
![]() |
- Customizable Fonts and Colors: Choose from multiple built-in fonts and a wide range of colors to personalize your clock's appearance.
- 12-hour and 24-hour formats: Display the time in either 12-hour or 24-hour format.
- Adjustable Size and Position: Control the size and position of the clock on your terminal.
- Countdown Timer: Start a countdown for a specific duration or to a target time.
- Cross-platform: Works on Windows, macOS, and Linux.
You can download the latest release for your platform from the GitHub Releases page.
After downloading, make sure to give execute permissions (on macOS/Linux):
chmod +x rust-clock-cli-*-
Clone the repository:
git clone https://github.com/binghan1227/rust-clock-cli.git cd rust-clock-cli -
Build the project:
cargo build --release
The executable will be located at
target/release/rust-clock-cli.
To start the clock, simply run the executable:
./rust-clock-cli| Flag | Description | Default |
|---|---|---|
-H, --height |
Height of each digit tile. | 1 |
-W, --width |
Width of each digit tile. | 2 |
-x |
Horizontal offset (x position). | 0 |
-y |
Vertical offset (y position). | 0 |
--12 |
Use 12-hour clock format. | false |
-f, --font |
Font style for digits (0: 5x7, 1: 3x5). | 0 |
-c, --color |
Color of the digit tiles. | 3 |
You can also use the countdown subcommand to start a timer.
./rust-clock-cli countdown -d 10mThis will start a 10-minute countdown. You can use h, m, and s for hours, minutes, and seconds, respectively.
./rust-clock-cli countdown -t "2025-12-31 23:59:59"This will start a countdown to the specified date and time.
This project was inspired by and borrows some code from nwtnni/tock. A big thank you to the original author for their work.





