Commit graph

14 commits

Author SHA1 Message Date
Midgard
3ddd8ecbb3
[polybar] Adjust clock colors to match yambar config 2022-09-05 00:20:25 +02:00
Midgard
ec32ec0bb6
[polybar] Update for new version of font with combining icons 2022-08-30 02:11:29 +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
M1dgard
0f2d1939de
[clock.py] Option to fill the watch face
Nowadays I prefer the clock face black.
2019-03-01 17:58:32 +01:00
M1dgard
67b60c84e0
[terminal] Switch back to xfce4-terminal
st is waaaaay to laggy in its rendering to my taste. cmatrix doesn't even
run on it well.

It was a great learning experience however. For instance I learned how
the terminal title is determined and could improve it to make my
terminal.sh work more reliably.
2018-08-22 17:27:22 +02:00
M1dgard
78d1658acf
[polybar] Make clock bigger 2018-08-21 01:28:36 +02:00
M1dgard
318fa288ff
[clock.py] Action for analog clockface
Because it seems there aren't that much analog clocks, I went with just
yet another tty-clock config.
2018-08-20 03:22:41 +02:00
M1dgard
cb9bc04f25
[clock.py] Add actions to open khal and tty-clock 2018-08-20 03:07:18 +02:00
M1dgard
4f45e2f9ab
[clock.py] Fix colours 2018-08-19 01:54:30 +02:00
M1dgard
15c095dd69
[polybar] Getting tired of the timezones 2018-08-06 20:23:14 +02:00
M1dgard
4e13e22dee
Actually a digital readout is useful 2018-05-29 12:26:09 +02:00
M1dgard
385ea67efd
Add battery ramps and detailed clocks
Like the wlan strength icons, the clocks and battery ramps draw multiple
glyphs at the same location to create multi-coloured icons. For them to
show up, you need my Bar Material Supplement font, which isn't published
yet because I haven't decided on a license nor on a way to host it.
2018-05-29 12:26:09 +02:00
M1dgard
717b208a94
Add analog clock faces 2018-05-29 12:26:09 +02:00
M1dgard
ed5ea4c2ab
Write small custom clock script for bar
Polybar doesn't support time zones yet, so I wrote my own date
displaying script. I think I'll keep it, it is more accurate: 0.02s
instead of up to 5s (configurable but higher frequency means more
CPU power used) latency.
2018-05-29 12:26:09 +02:00