/tuime

tui clock written in rust

Primary LanguageRustGNU General Public License v3.0GPL-3.0

Tuime

candy_scrot

A simple clock for your terminal made using Rust

Installation

Cargo

cargo install --git=https://github.com/nate-sys/tuime

# or

git clone https://github.com/nate-sys/tuime
cd tuime
cargo build --release
mv ./target/release/tuime /usr/local/bin/tuime

Nix

nix profile install github:nate-sys/tuime

Other

Download the appropriate binary from the releases section

Usage

Usage: tuime [OPTIONS]

Options:
      --format <FORMAT>
          Format the time

          [default: %H:%M]

  -c, --colors <COLORS>
          Supply a color to use for rendering

          If the font supports it you may supply mutliple colors : -c red -c green ...
          To see what fonts support multiple colors, see https://github.com/dominikwilkowski/cfonts"

          Possible values:
          - system:
            Uses the system font defined by your console
          - black
          - red
          - green
          - yellow
          - blue
          - magenta
          - cyan
          - white
          - gray
          - red-bright
          - green-bright
          - yellow-bright
          - blue-bright
          - magenta-bright
          - cyan-bright
          - white-bright
          - candy:
            A color that randomizes it's colors from a set of bright candy-like color set

  -f, --font <FONT>
          Set the font
          To see what fonts you can use, go to https://github.com/dominikwilkowski/cfonts"

          [default: font-block]
          [possible values: font-console, font-block, font-simple-block, font-simple, font3d, font-simple3d, font-chrome, font-huge, font-shade, font-slick, font-grid, font-pallet, font-tiny]

  -g, --gradient <GRADIENT>
          Set a gradient instead of regular colors : -g "#ffaabb" -g "#ee22ff" ..."

  -u, --utc-offset <UTC_OFFSET>
          Set the utc offset

          If this argument is not supplied, we will try to use the local time
          Supplied as +/-<secs>. Eg: tuime -u="-3600", tuime -u="+7200"

  -s, --screensaver
          Screensaver mode

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Red and Black with Regular Font

tuime -c Red -c Black

red black

Blue with Shade Font and Formatted time

tuime -c Blue --format "%H:%M:%S" -f shade

blue shade

Colorful with Tiny Font

tuime -c Candy -f Tiny

tiny candy

Gradient and 3d Font

tuime -f Simple3d -g '#ffe' -g '#3af'

simple3d