gBar icon indicating copy to clipboard operation
gBar copied to clipboard

Custom icon for tray items

Open ThatOneCalculator opened this issue 1 year ago • 4 comments

          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

ThatOneCalculator avatar Nov 22 '23 01:11 ThatOneCalculator

Working on it.

scorpion-26 avatar Nov 29 '23 18:11 scorpion-26

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.

scorpion-26 avatar Dec 03 '23 21:12 scorpion-26

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)?

ThatOneCalculator avatar Dec 03 '23 23:12 ThatOneCalculator

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.

scorpion-26 avatar Dec 04 '23 11:12 scorpion-26