Giter Club home page Giter Club logo

cli-clock's Introduction

CLI Clock

Description

The CLI Clock is intended to be a simple and reliable digital clock for your Linux shell. The idea to create such a script came after trying to find a simple shell script or python script to do the same thing online. I couldn't find one that I actually liked, and that was easy to customise, so I created my own.

Requirements

PyFiglet

$ pip3 install pyfiglet

Usage

  • Download the latest release from here
  • Extract the downloaded release and run with Python.
$ python3.7 main.py

Customisation

The variables at the start of the script can all be changed to modify the look and feel of the clock.

Variable Default Description Useful Link(s)
font_name '3x5' Changes the Figlet font which is rendered Figlet Font DB
padding [0, 0, 0, 0] Applies padding to the top/right/bottom/left of the text
custom_char_replace {'#': '\u2588'} Used to replace the character(s) in the key with the character(s) in the value Unicode Character Table
time_format '%H:%M:%S' Set the format of the time to be displayed Time Formatting Parameters

Planned Features

  • Colour customisation.

cli-clock's People

Stargazers

 avatar

Watchers

 avatar

Forkers

llgdd

cli-clock's Issues

Left Padding Not Working

Describe the bug
Changing the value of the padding variables index 3 does not affect the left-padding of the text.

To Reproduce
Steps to reproduce the behavior:

  1. Change padding to `[X, X, X, 0-9]
  2. Save and run the script
  3. Text still appears fixed to the left side of the console

Expected behavior
Text will be offset to the right by the specified amount.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Solus x86_64
  • Python Version: 3.6

Additional context
N/A

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.