polybar / polybar-scripts

This is a community project. We write and collect scripts for polybar!
The Unlicense
2.48k stars 340 forks source link

Add documentation on changing icons #29

Closed Cybolic closed 6 years ago

Cybolic commented 6 years ago

The README currently states:

Use # or #1, #2 .. as icon replacement in your scripts. Everyone use anoter icon font. So let the user decide which icon he wants to use.

but doesn't provide information on how the user should replace these strings with their desired icons (and as far as I can tell, neither does the polybar documentation).

Adding this information would be helpful to new users.

x70b1 commented 6 years ago

The point is simply that there are many icon fonts. A small selection can be found here: jaagr/polybar/wiki/Fonts#icon-fonts

Everyone wants to customize their system and use the icons they like. So I don't want to predefine anything. It's not difficult at all. All # in the code are icons that are printed. These have to be replaced. gucharmap is a good tool to find the symbols in the font.

Cybolic commented 6 years ago

Thanks for the explanation. Unfortunately, I'm still not sure how to replace the icons; are they meant to be replaced manually in the scripts or is there a configuration option in the polybar config that lets one replace them dynamically?

x70b1 commented 6 years ago

Simply copy and paste. :v: You can do this directly in the script.

Cybolic commented 6 years ago

Thanks :) Maybe this is worth adding to the documentation? Something along the lines of:

If you are just looking for a way to set your own icons, simply replace the appropriate icon strings in the script (e.g. replace #1 with 🎉).

x70b1 commented 6 years ago

Yeah, I will do that. If you need more help configuring polybar-scripts, join #polybar on freenode. I hang out there. :alien: