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

Battery live icon #106

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Ethanol48
Copy link

Implementation of icon that changes depending if the device is charging

@Ethanol48
Copy link
Author

Ethanol48 commented Jan 18, 2023

Screenshot 2023-01-18 at 22 50 58 Screenshot 2023-01-18 at 22 49 58

This are simple examples of the feature

these are the "normal" ones:

Screenshot 2023-01-18 at 22 58 17

and these ones are displayed when the computer is charging:

Screenshot 2023-01-18 at 22 58 27

thekpaul pushed a commit to thekpaul/tmux-battery-add-percent-wsl that referenced this pull request May 23, 2023
@martinbeentjes
Copy link
Collaborator

Looking at the diff I see the font encoding does not recognize these icons. Which font is being used here? What happens if I do not have this font?

@Ethanol48
Copy link
Author

It's being used a nerd font, it needs to be installed manually by the user, but offers more clearer icons

@Ethanol48
Copy link
Author

These are some example of what it is rendered if the NerdFont is installed, I also added 10 'levels' of colors for making more obvious the charge level

Screenshot 2023-12-09 at 15 59 51 Screenshot 2023-12-09 at 18 42 12 Screenshot 2023-12-09 at 18 42 58

@Ethanol48
Copy link
Author

recently Nerdfont change their encodings and with it they added more icons, now this "module" has ten levels of battery icons.

Screenshot 2023-12-11 at 15 45 28 Screenshot 2023-12-11 at 15 46 09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants