scorpion-26 / gBar

Blazingly fast status bar written with GTK
MIT License
459 stars 17 forks source link

Custom icon for tray items #63

Open ThatOneCalculator opened 9 months ago

ThatOneCalculator commented 9 months ago
          Also, being able to choose a custom icon for tray items like Discord would be nice.

image

image

Originally posted by @ThatOneCalculator in https://github.com/scorpion-26/gBar/issues/56#issuecomment-1821931781

scorpion-26 commented 8 months ago

Working on it.

scorpion-26 commented 8 months ago

gBar now respects which icon theme is used by the system. Some items still don't use them though (most notably discord). For those the icon needs to be manually set with SNIIconName.

ThatOneCalculator commented 8 months ago

Nice! Could you also make it possible to set it to a fonticon/text (given that's what I use for all the other icons)?

scorpion-26 commented 8 months ago

You can either directly download the icon as svg (if supported, e.g. for material icons you can) or extract it from the font directly. Then you can paste them into ~/.local/share/icons/ or /usr/share/icons/ with a unique name and then use that as SNIIconName. Or you can convert them to png using e.g. gimp and use that.