This is my config for the i3 module, and I’m not seeing icons anywhere! It’s crazy to me as a long-time polybar user, who only ever used the config file. As far as I knew, icons HAD to be defined as ws-icon-0 = 1:[icon].
So, my questions today are:
Where is polybar getting the icons from, if they aren’t defined in the i3 module?
Where do I go to customize the icons for each workspace to my liking?
Is there any copy/paste kind of cheat sheet for the icons that ship with Archlabs’ polybar? I’d like to keep things as flush as possible.
Thank you in advance to anybody who takes the time to assist! <3
Polybar gets the icons from the workspaces section in your i3 config, if you changed them you also have to set it in the i3 module : $HOME/.config/i3/config
The polybar definition is also in /etc/skel/.config/polybar
So in $HOME/.config/polybar/modules.conf: module/i3
hi, thanks for the response. I’m still having trouble finding the icon definitions, I’m not seeing them in /etc/skel/.config/polybar/*, or in .config/polybar/*
Also, the only workspace related definitions I have in .config/i3/config are keybinds for switching and navigating workspaces. I see nothing in there about icons anywhere. Any ideas?
Hi @smoke, welcome to the forum! I was looking for a possible solution to your issue, although I’m surprised that you couldn’t find the icons. Maybe this article will help:
And I’m assuming that you have read the wikis on polybar and i3 configurations. Hopefully these suggestions will help a little. I mainly use openbox or flux myself, but…
How did you isnstall ArchLabs, did you select i3, openbox or something else at that point ?
If so then install archlabs-polybar , archlabs-skel-i3-gaps & i3-gaps packages
Polybar gets it’s icons from the fonts used. In your ~/.config/polybar there will be some config files that are all used - config, master, modules I think. Look in those files and you’ll see a stanza similar to this:
Those are the fonts used in my current config, font-3 “Monofur Nerd Font” is the font that contains the icon glyphs, if that font isn’t installed, I won’t see any icons.
Did you use the recent iso to install ArchLabs? Near the end, when you’re given the option to install packages, font packages for polybar were part of the options (as I recall).
Font Awesome, Nerd Fonts, and Material Icon font are popular for polybar, you can install them with pacman or baph. Then follow @archus post on how to code the configuration to see the icon.
The home page for nerd fonts and font awesome has cheat sheets so you’ll know what’s available.