Hi all. I have an interesting issue with the battery indicator on swaybar, on my Pocket Reform. When the battery level is between 59% and 40% the battery icon turns into a letter L with stroke ( Ł). Anybody experiencing a similar issue? Or have suggestions on how to fix it? Thanks!
Yes, I have that too. Never really understood what’s going in there
The icons are chosen based on your waybar configuration. Have a look at the setting “format-icons” in the section “battery” in ~/.config/waybar/config
. What does it say there for you? Mine looks like this:
"format-icons": ["", "", "", "", ""],
My firefox renders these icons this way:
If I copypaste the line into libreoffice and choose “FontAwesome” as the font, then it looks like this:
Do you have the Font Awesome font installed? How does your “format” string in the “battery” section of your waybar config look like?
Thanks for the detailed explanation josch. I looked at the icons battery section in the config file and it looks exactly like you explained here: "format-icons": ["", "", "", "", ""]
When I paste it to LibreOffice and choose FontAwesome font, they look OK too. It seems like I have FontAwesome installed.
Good. Then this must mean that despite the font being installed, it is not getting chosen by waybar.
How does your “format” string in the “battery” section of your waybar config look like?
My whole battery section looks like this:
"battery": {
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-icons": ["", "", "", "", ""]
},
Can you try to change the “format” line to this:
"format: "<span face='FontAwesome'>{icon}</span> {capacity}%",
And then reload waybar.
That fixed it, thank you so much, no more Ł!
(Just needed to add a quotation mark after format)
"format": "<span face='FontAwesome'>{icon}</span> {capacity}%",
Whoops, yes the quotation mark was missing.
Do you get the same result if you write “Font Awesome” with a space between “Font” and “Awesome” or does it have to be “FontAwesome”?
Thanks!
Font Awesome (with a space between) seems to also work!
Thank you! Future system images will have this fixed via this commit: etc/skel/.config/waybar/config: explicitly choose FontAwesome via <span> for battery icon (8fe7187a) · Commits · Reform / reform-system-image · GitLab