Code Monkey home page Code Monkey logo

tuime's Introduction

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

tuime's People

Contributors

nate-sys avatar a-usr avatar doprz avatar

Stargazers

adamz avatar Halano avatar  avatar  avatar Stef avatar isksss avatar Alvaro avatar Qichen Liu 刘启辰 avatar aman avatar Antônio Alves Borges de Almeida avatar Uday avatar RAVENz46 avatar 小白云 avatar  avatar UnknownRori avatar NFEL avatar  avatar Fraol Lemecha avatar doremire avatar HidemaruOwO avatar Linux Hoe avatar Kisaragi avatar Comamoca avatar Able Chow avatar Dominik Wilkowski avatar Alberto Mendez avatar Blake Huntington avatar ■ avatar Ujjwal Panda avatar Cédric Raud avatar Luke Else avatar Wayu Ragwongsiri avatar  avatar Chaaaaaaarles avatar Kostya Farber avatar Jason Hegyessy avatar Zicklag avatar ValeCrafter avatar Liv avatar Huỳnh Minh Khang avatar Daniel Moshe avatar Michael McMahon avatar  avatar Mushfiqur Rahman Abir avatar  avatar  avatar Henri avatar is0dead avatar  avatar Derek avatar xattrx avatar Julius avatar Sal Sal avatar Jake Langford avatar  avatar kronos4453 avatar  avatar Adam Henley avatar mmmotion avatar Bjarke avatar Nici avatar Ron Green avatar Artiom Basenko avatar  avatar Callum Beaney avatar kbl avatar moon250 avatar Tahir Mohammedaman avatar Robb Bankz avatar  avatar

Watchers

 avatar

Forkers

0xack13 doprz a-usr

tuime's Issues

Windows: Colors are not behaving.

Note: This is most likely an Issue with crossterm or cfonts, but Im not sure yet.

When using conhost.exe or Windows Terminal as a Terminal Emulator and using for exampe gradients the colors aren't displayed properly. Instead of rgb-colors, the text is colored using the defined terminal colors.

Example:

Command: tuime -f font3d -g '#ffe' -g '#3af'
image

However when rerouting stdout to a file and then printing the contents of said file, the colors are displayed as intended.

argv help menu

There's a large number of options for different fonts, colours etc, and command-line args are case-dependent e.g. red is illegal because the arg must be Red . An in-built sub-menu to tell users options in addition to general flag syntax would be a big QOL improvement as otherwise many features will likely be ignored.

Flicker

I ran Tuime with the format showing hours minutes and seconds. It's now very hard not to notice that the terminal will flash to blank for a split second while refreshing the time.

Timezone capability

Perhaps you could:

  • by default, detect the system timezone
  • allow an optional flag to show specific timezones e.g. someone has family overseas and might like to keep it on a terminal in a separate monitor.

Missing LICENSE

I see you have no LICENSE file for this project. The default is copyright.

I would suggest releasing the code under the GPL-3.0-or-later or AGPL-3.0-or-later license so that others are encouraged to contribute changes back to your project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.