A digital clock for the windows terminal, inspired by the classic tty-clock.
- Large ASCII Digits: Easy to read from across the room.
- Custom Quote: Add your own quote to display on the clock.
- Customizable Colors: Set any hex color in the config or via CLI.
- 12/24 Hour Format: Toggle between formats on the fly.
- Blinking Colon: Optional blinking animation for the time separator.
- Interactive Controls: Change settings while the clock is running.
- Border Support: Optional box around the clock for a classic terminal look.
- Configuration File: Save your preferences in
~/.winclock.properties.
- Java 17 or higher
- Maven (for building from source)
-
Clone the repository:
git clone https://github.com/ashifu/win-clock.git cd win-clock -
Build the project using Maven:
mvn clean package
-
Run the clock:
java -jar target/win-clock-1.0.jar
To add winclock to your terminal's command list, run the following in PowerShell from the project root:
.\install.ps1This will:
- Build the project.
- Create a local binary folder at
~/.winclock/bin. - Add it to your User PATH.
- Allow you to run the clock simply by typing
winclock.
| Argument | Long Form | Description |
|---|---|---|
-s |
--seconds |
Show seconds (default: true) |
-ns |
--no-seconds |
Hide seconds |
-b |
--blink |
Enable blinking colon (default: true) |
-nb |
--no-blink |
Disable blinking colon |
-12 |
--12h |
Use 12-hour format |
-24 |
--24h |
Use 24-hour format (default) |
-box |
--box |
Draw a border around the clock |
-c #HEX |
--color #HEX |
Set clock color (e.g., -c #a6e3a1) |
q: Quit Winclocks: Toggle seconds displayb: Toggle colon blinkingt: Toggle 12/24 hour format
Create a file named .winclock.properties in your home directory (C:\Users\<YourName> on Windows or /home/<YourName> on Linux):
color.hex=#E5C3C3
date.format=EEE MMM d
quote.show=false
quote.text="Keep it simple."
show.seconds=true
blink.colon=true
use.12h=false
show.border=falseThis project is licensed under the MIT License - see the LICENSE file for details.
