polybar/polybar-scripts

[bug] info-cava.py is not work

awarewen opened this issue ยท 5 comments

Info-cava.py script output in the wrong position

Peek.2023-03-29.23-29.mp4

OS: arch linux
Terminal: kitty
bar: polybar
Run Command:
polybar -c ~/todo/dots-2.0/Configs/eww/mybar/polybar.ini cava& > /dev/null

x70b1 commented

You should check your used font first.
Your polybar drops the output because the font that you use can not display the chars. That what the warning output is for.

image
I'm sorry to reopen this issue, as I only had time to look into it today due to some other reasons. I have checked the Polybar WIKI and defined a font according to its format, but it seems that the font is not being loaded correctly according to the logs in Polybar. Thank you for this project, it's really cool.

image

Peek.2023-04-12.20-39.mp4

My Kitty terminal is also using this font. From the status of the widget, it seems that the correct characters have passed the detection and are displayed on the bar, but only as empty characters (I described it poorly).

๐Ÿ˜ฟ

image

It's Done! It's great!

It's really the font. Polybar checks the fonts in the user directory, but the fonts I installed with 'Yay' are under `/usr/share/fonts/' and need to be moved to the user directory: ' ~/. Local/share/fonts'

And set the font index in the configuration [ bar/XX ] , but I don't quite understand the rules for the name (why 'Iosevka' instead of 'Iosevka') , and finally specify the index in [ module ] .

Thanks for help. ๐Ÿˆ

x70b1 commented

polybar should also read the fonts from /usr/share/fonts.
Now you use Iosevka instead of Caskaydia. That could solved the issue.

The wiki page is a great start to play around with fonts.

But yeah, fonts are probably the topic with the most questions on polybar.