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

Enhancement: Use battery icon instead of label and status #225

Open
Erimus-Koo opened this issue Jun 24, 2023 · 6 comments
Open

Enhancement: Use battery icon instead of label and status #225

Erimus-Koo opened this issue Jun 24, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@Erimus-Koo
Copy link

Describe the feature you'd like

image

There are several battery icons available in the Nerd Font, which display both the percentage and charging status.
Mine is "JetBrainsMono Nerd Font".

image

Using them instead of the heart label and "AC" will save space and increase clarity.

Of course not everyone installed the nerd font, so there might be an alternative option such as "use-battery-icon".

@Erimus-Koo Erimus-Koo added the enhancement New feature or request label Jun 24, 2023
@ethancedwards8
Copy link
Member

Good idea.

@sydrawat01
Copy link

I'm wondering is there a possibility to update the icon based on the battery percentage, charging/not charging, etc?

@sydrawat01
Copy link

I'm wondering is there a possibility to update the icon based on the battery percentage, charging/not charging, etc?

image

This config works well for me!
Of course, the only caveat is the user needs to have a Nerd Font installed.

@Erimus-Koo
Copy link
Author

@sydrawat01
I am not familiar with shell code, but this seems like a good attempt.
Additionally, it would be nice to add color to indicate battery status - green for full charge, red for low battery - and establish some rules for when the device is charging.

@ethancedwards8
Copy link
Member

Yeah this is something to think about but hard to implement without certain fonts. I like the idea of setting a custom battery prompt.

@Erimus-Koo
Copy link
Author

I believe these glyphs should be included in all nerd fonts, but I'm not certain.
Nerd fonts look like some monospace fonts, append the icon glyphs(some standard subset), but maybe the subset has some different versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants