dotfiles/polybar
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
..
bar-material-supplements.ttf [polybar] Improve clock and battery 2021-12-17 10:55:18 +01:00
clock.py [polybar] Improve clock and battery 2021-12-17 10:55:18 +01:00
config.ini [polybar] Improve clock and battery 2021-12-17 10:55:18 +01:00
info-hackspeed.sh Make dontcare condition easier 2018-05-29 12:26:09 +02:00
launch.sh [polybar] Change log file name 2019-06-13 20:01:06 +02:00
openweathermap-fullfeatured.sh Add OpenWeatherMap module 2018-05-29 12:26:09 +02:00
README.md Update screenshots 2018-10-05 23:16:30 +02:00

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