Skip to content

A Python script that renders a digital clock in your command line.

License

Notifications You must be signed in to change notification settings

lintonfisher/cli-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

A Python script that renders a digital clock in your command line.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages