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.
$ pip3 install pyfiglet
- Download the latest release from here
- Extract the downloaded release and run with Python.
$ python3.7 main.py
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 |
- Colour customisation.