An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# era

A rainy clock in your terminal, written with Deno.

![sample gif](screenshots/sample.gif)

## 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.

![count_sample](screenshots/count_sample.png)

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!