https://github.com/kyoheiu/era
A rainy clock in your terminal.
https://github.com/kyoheiu/era
clock deno tui
Last synced: about 1 month ago
JSON representation
A rainy clock in your terminal.
- Host: GitHub
- URL: https://github.com/kyoheiu/era
- Owner: kyoheiu
- License: mit
- Created: 2022-03-16T04:02:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T21:33:22.000Z (6 months ago)
- Last Synced: 2025-04-09T16:09:14.879Z (about 1 month ago)
- Topics: clock, deno, tui
- Language: TypeScript
- Homepage:
- Size: 1.66 MB
- Stars: 67
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# era
A rainy clock in your terminal, written with Deno.

## v0.1.3
### Fixed
- Fix error in latest deno.## v0.1.2
### Fixed
- the extension of pre-build compression## v0.1.1
Now era can redraw contents if the terminal window size is changed.## Installation
- git clone this repo and compile it.
```
git clone https://github.com/kyoheiu/era
cd era
make install
```- Or, you can use binary from the release page.
## Usage
```
./era
```creates `config.json` in your `$XDG_CONFIG_HOME/era/` automatically and you have a rainy clock.
NOTE: `era` assumes the value is `~/.config` if `$XDG_CONFIG_HOME` isn't defined as an environment variable.
Or,
```
./era -c
```starts counter like this.

To exit, press any key.
## Customization
`config.json` looks like this:
```
{"interval":100,"frequency":40,"rain1":"│","rain2":" ","timecolor":"#eeeeee","raincolor":"#e0b0ff"}
````interval` means how often the screen is updated (a.k.a how fast it rains). The bigger this number, The slower it rains.
The larger `frequency`, the fewer the raindrops.
`rain1` and `rain2` are characters representing raindrops. By default `rain2` is just a whitespace, so raindrops are represented by rain1 (|) only. Of course you can change the shape of raindrops!