enkore / i3pystatus

A complete replacement for i3status
https://i3pystatus.readthedocs.io/
MIT License
445 stars 188 forks source link

Glyph based representation of numeric values #674

Closed dmelliot closed 6 years ago

dmelliot commented 6 years ago

Add make_glyph function to core utils (and update battery module to use it)

A new function (in line with similar functions such as make_bar), make_glyph allows generating a glyph based representation of a numeric value.

This provides a way for modules to easily expose functionality to use a set of glyphs (e.g. battery level icons from FontAwesome) to represent a numeric value (e.g. battery level).

enkore commented 6 years ago

Cool!