Commit graph

4 commits

Author SHA1 Message Date
Midgard
ec32ec0bb6
[polybar] Update for new version of font with combining icons 2022-08-30 02:11:29 +02:00
Midgard
1b5972ac10
[polybar] Add transparency
And change font for MPD progress to one that renders the bar better
2022-08-30 02:11:28 +02:00
Midgard
1215d7270f
[polybar] Improve clock and battery
Make the hands in the font zero-width; now the clock *without* filled
face is independent of font size.

The clock *with* filled face is not. Its elements (face, hands) have to
be in a specific order (hands must come after face), the face would
obscure the hands if it's the other way around. But since the font has
zero-width for the hands, not the face (and this makes the most sense),
the filled-face clock still relies on a hardcoded offset (as before, 27
units are subtracted to move the hands, but now that the hands are
zero-width, we add them back after emitting the hands, to have the rest
of the bar in the correct position). So I think that the hands will be
off-center if you change font size (haven't tested that), but even in
that case it will be less messy now.

Likewise for the battery icon.

In truth, I made the font adjustments a few months ago, and had better
done it in a different way: make the clock faces zero-width, make the
minute hand non-zero-width, and make everything about the battery icon
zero-width and add a separate, transparant "battery width" glyph. I
might fix that later.
2021-12-17 10:55:18 +01:00
Midgard
87a7224a9d
[polybar] Add font for clock and battery 2019-06-13 19:12:06 +02:00