The polybar AUR package faithfully builds polybar from its source code. I maintain both polybar and its AUR package so I make sure of that. Whether you want to trust me is up to you ;)
I would say the polybar code itself is safe, but you can always check yourself, it is open-source.
Yes, either move font awesome before the nerd font in the list (preferred) or use font tags to specify fonts for individual pieces of text (more effort but more fine-grained control).
nerd fonts come with all font awesome icons and if the font appears before the font awesome fonts, it will take precedence. Changing the size for your nerd font will likely change the size for the icons as well.
I'm not sure that pixelsize works on these fonts. In general, pixelsize is used for non-scalable fonts (e.g. bitmap fonts) and size for scalable fonts.
I'm using Material Design Icons for most of my icons. Note, this is not the same as the material design icons from google.
They have a full list of available icons here.
There is probably a setting inside slack itself to disable the tray icon. Polybar doesn't have an option to hide individual icons (and I don't think other implementations have that option either)
Do you maybe have multiple versions of polybar installed? Because the error message you are getting cannot come from a clean install on an up-to-date arch system. libjsoncpp.so.22 is no longer shipped with jsoncpp since I think June.
Your problem isn't polybar, it's the full system update. yay -Syu polybar will update all packages and install polybar. I'm pretty sure just running yay -Syu will also give you that error.
How exactly are you trying to install polybar? Because this build output is not produced by polybar. It looks a lot like the error someone got when trying to install python2-urwid.
EDIT: I should clarify, polybar does not depend on python2-urwid (not even transitively), so this really shouldn't show up when trying to install polybar.
What happens if you just run cmake? I think something in your system is broken and this has nothing to do with the AUR packages you are trying to install.
That the icon isn't displayed properly in the terminal does not necessarily mean that you are missing a font. For example urxvt can't display FontAwesome character.
The Dropping unmatched character warning means that none of the fonts loaded by polybar support that character.
This either means that you have not configured polybar to load an appropriate font or you don't have the font installed (or both).
The flag emojis aren't "normal" emojis, they're two emojis stitched together and polybar doesn't support that.
This is not possible in polybar, because it doesn't support such compound characters
Quite high actually, I check reddit from time to time for posts about polybar.
https://www.reddit.com/r/archlinux/comments/9sqx37/comment/e8qt4hb/?utm_source=reddit&utm_medium=web2x&context=3
The polybar AUR package faithfully builds polybar from its source code. I maintain both polybar and its AUR package so I make sure of that. Whether you want to trust me is up to you ;)
I would say the polybar code itself is safe, but you can always check yourself, it is open-source.
What version of polybar are you running? There was a very similar bug in version 3.5.5 that is now fixed.
This is a polybar bug, unearthed by the recent changes to the default makepkg flags: https://github.com/polybar/polybar/issues/2416
Yes, either move font awesome before the nerd font in the list (preferred) or use font tags to specify fonts for individual pieces of text (more effort but more fine-grained control).
nerd fonts come with all font awesome icons and if the font appears before the font awesome fonts, it will take precedence. Changing the size for your nerd font will likely change the size for the icons as well.
Do you have something like nerd fonts in the list that also provides font awesome characters?
Are you sure those icons are actually from FontAwesome and not from some other font in your font list?
I'm not sure that
pixelsizeworks on these fonts. In general,pixelsizeis used for non-scalable fonts (e.g. bitmap fonts) andsizefor scalable fonts.The side with the tray unfortunately can't have rounded corners: https://github.com/polybar/polybar/issues/651
I have it installed from the
ttf-material-design-icons-gitpackage from the AUR.I'm using Material Design Icons for most of my icons. Note, this is not the same as the material design icons from google. They have a full list of available icons here.
In that case, I guess you're out of luck
There is probably a setting inside slack itself to disable the tray icon. Polybar doesn't have an option to hide individual icons (and I don't think other implementations have that option either)
Do you maybe have multiple versions of polybar installed? Because the error message you are getting cannot come from a clean install on an up-to-date arch system. libjsoncpp.so.22 is no longer shipped with jsoncpp since I think June.
What kind of errors/warnings do you get?
Also, read our font debugging guide
Your problem isn't polybar, it's the full system update.
yay -Syu polybarwill update all packages and install polybar. I'm pretty sure just runningyay -Syuwill also give you that error.To just install polybar, run
yay -S polybarWhich exact command do you run? Is the output you posted the entire output of that command or is there more?
As I said, the output you posted is completely unrelated to polybar and seems unrelated to any of its dependencies as well.
How exactly are you trying to install polybar? Because this build output is not produced by polybar. It looks a lot like the error someone got when trying to install python2-urwid.
EDIT: I should clarify, polybar does not depend on python2-urwid (not even transitively), so this really shouldn't show up when trying to install polybar.
What happens if you just run
cmake? I think something in your system is broken and this has nothing to do with the AUR packages you are trying to install.It has problem calculating the font width. If I remember correctly it's because FontAwesome has double-width characters.
That the icon isn't displayed properly in the terminal does not necessarily mean that you are missing a font. For example urxvt can't display FontAwesome character.
The
Dropping unmatched characterwarning means that none of the fonts loaded by polybar support that character. This either means that you have not configured polybar to load an appropriate font or you don't have the font installed (or both).https://github.com/polybar/polybar/wiki/Fonts#debugging-font-issues