scorpion-26 / gBar

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

Feature request: custom icons #56

Closed ThatOneCalculator closed 9 months ago

ThatOneCalculator commented 9 months ago

Allowing the use of custom, non-nerdfont fonticons like Phosphor would be great :)

scorpion-26 commented 9 months ago

Sorry for the long wait, but it should be implemented now.

ThatOneCalculator commented 9 months ago

Everything seems to work except the sleep button.

https://github.com/scorpion-26/gBar/assets/44733677/80764bec-ac0e-49df-b8fb-43d28fda90df

My config:

image

# All of the icons that can be modified.
# Please note that some icons require a space ("\s") (e.g. default ShutdownIcon)
ShutdownIcon: 
RebootIcon: 
SleepIcon: 
LockIcon: 
ExitIcon: 
BTOffIcon: 
BTOnIcon: 
BTConnectedIcon: 
DevKeyboardIcon: �\s
DevMouseIcon: 
DevHeadsetIcon: 
DevControllerIcon: 
DevUnknownIcon: 
SpeakerMutedIcon: 
SpeakerHighIcon: 
MicMutedIcon: 
MicHighIcon: 
PackageOutOfDateIcon: 
ThatOneCalculator commented 9 months ago

Also, being able to choose a custom icon for tray items like Discord would be nice.

image

image

scorpion-26 commented 9 months ago

Sleep button should be fixed, expected the wrong thing in code

ThatOneCalculator commented 9 months ago

Awesome, fixed!