1215d7270f
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. |
||
---|---|---|
.. | ||
bar-material-supplements.ttf | ||
clock.py | ||
config.ini | ||
info-hackspeed.sh | ||
launch.sh | ||
openweathermap-fullfeatured.sh | ||
README.md |
Polybar configuration
System monitors for CPU usage, RAM usage and temperature are shown when their values are high. When the CPU gets a moderate load it looks like this:
To be able to put my config in Git and keep some stuff I don't want to share confidential (my MPD server host and password), I created a secrets.sh
file. Mine looks like this:
#!/bin/false
MPD_ONLINE_1_HOST=mpd.example.org
MPD_ONLINE_1_PORT=6600
MPD_ONLINE_1_PASS=mypass1
MPD_ONLINE_2_HOST=mpd2.example.org
MPD_ONLINE_2_PORT=1234
MPD_ONLINE_2_PASS=mypass2