Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to use a custom icon for the battery indicator? #3856

Open
FarrenHawk opened this issue Dec 31, 2024 · 1 comment
Open

Is there any way to use a custom icon for the battery indicator? #3856

FarrenHawk opened this issue Dec 31, 2024 · 1 comment
Labels
battery bug Something isn't working custom

Comments

@FarrenHawk
Copy link

Hi there, I designed a custom multi-stage battery icon for an unrelated reason, but I'd like to use it for my waybar battery indicator as well. I considered turning it into a font, which would work, but the icon has multiple colors in it, which turning the icons into a font would negate. My current theory is that I might be able to use a watermark image or album cover image module, and make it poll data from the battery percentage, and using conditionals to determine which version of the icon to display. The problem is that I have no idea how to do this. My question is this:

Is this even possible? and if so, how do I do this?

@github-actions github-actions bot added battery bug Something isn't working custom labels Dec 31, 2024
@FarrenHawk
Copy link
Author

Update: I was able to successfully implement this. I got the icons in png format, made a really shoddy shell script to query the battery percentage and output a path to one of the images (depending on percentage, of course), then added an image in my waybar config which I put in a group with the battery percentage readout. It's not ideal, but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
battery bug Something isn't working custom
Projects
None yet
Development

No branches or pull requests

1 participant