Skip to content

jamessouth/polybar-binary-clock-fonts

Repository files navigation

polybar-binary-clock-fonts

 

Binary clock fonts for your

polybar logo

 

 

Description

This repo is a collection of fonts that represent numbers in base 2 as columns of dots like on a binary clock. The only glyphs are 0-9. Other characters will display in the first font that contains them.

 

Appearance

On my 20px polybar with font size 15, vertical offset 4:

Font Table Running Clock
table of fonts binary clock

 

Installation

To install a particular font:

sudo mkdir -pv /usr/share/fonts/BinaryClock && cd /usr/share/fonts/BinaryClock && sudo curl -JOL https://github.com/jamessouth/polybar-binary-clock-fonts/blob/master/BinaryClockLigatureMono.ttf?raw=true && sudo fc-cache -fv && fc-list | awk '/BinaryClock/ {print $2}'

This will create a directory for the Binary Clock font family in /usr/share/fonts/, change to it, download the font file, update your font cache, and output the name and style. Replace the filename as needed.

To install all of them:

curl -JOL https://github.com/jamessouth/polybar-binary-clock-fonts/blob/master/fonts.zip?raw=true && sudo mkdir -pv /usr/share/fonts/BinaryClock && sudo unzip fonts.zip -d /usr/share/fonts/BinaryClock && sudo fc-cache -fv && fc-list | awk '/BinaryClock/ {print $2}'

This will download the zip file with all 10 font files and the LICENSE, create the Binary Clock directory, unzip the files into it, update your font cache, and output the names and styles.

 

Usage

Take the output of the installation command and put it in your polybar config with your other fonts: font-3 = BinaryClock:style=BoldMono:size=15;4. In your date module, use time-alt/date-alt settings to switch to your normal format. Use format tags to show time in a different color from the date.

 

My other polybar modules

Please check out:

 

About

fonts to display numbers as dots like on a binary clock

Resources

License

Stars

Watchers

Forks

Packages

No packages published