tmux icon indicating copy to clipboard operation
tmux copied to clipboard

Enhancement: Use battery icon instead of label and status

Open Erimus-Koo opened this issue 2 years ago • 6 comments

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 avatar Jun 24 '23 13:06 Erimus-Koo

Good idea.

ethancedwards8 avatar Jul 08 '23 23:07 ethancedwards8

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

sydrawat01 avatar Sep 06 '23 07:09 sydrawat01

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.

sydrawat01 avatar Sep 07 '23 07:09 sydrawat01

@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.

Erimus-Koo avatar Sep 10 '23 07:09 Erimus-Koo

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

ethancedwards8 avatar Sep 27 '23 02:09 ethancedwards8

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.

Erimus-Koo avatar Sep 27 '23 02:09 Erimus-Koo

this should be solved by the merge of #276. please close if you agree

Theoreticallyhugo avatar Nov 19 '24 15:11 Theoreticallyhugo