kyoheiu / era

A rainy clock in your terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

era

A rainy clock in your terminal, written with Deno.

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

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!

About

A rainy clock in your terminal.

License:MIT License


Languages

Language:TypeScript 93.3%Language:Makefile 6.7%