A clock app in terminal. It support the following modes:



Install excutable by cargo:
shell
$ cargo install clock-tui
shell
$ tclock
Run this command to start a clock, and press q to exit.
shell
$ tclock --help
```shell $ tclock clock
$ tclock ```
```shell
$ tclock timer -d 5m ```
The option -d or --duration to set time, for example 100s, 5m, 1h, etc.
You can press Space key to pause and resume the timer.
The timer mode also accept additional command to run when the timer ends, for example:
tclock timer -d 25m -e terminal-notifier -title tclock -message "'Time is up!'"
Here we use terminal-notifier to fire a notification when time is up.
shell
$ tclock stopwatch
You can press Space key to pause and resume the stopwatch.
You can customize the styles.
You can use -s or --size option to custome clock size, for example:
shell
$ tclock -s 2
You can use -c or --color to set clock forground color, for exmaple:
```shell
$ tclock -c yellow
$ tclock -c '#e63946' ```
MIT License.