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

Show charge remaining time #2

Open
justinhj opened this issue Aug 18, 2022 · 0 comments
Open

Show charge remaining time #2

justinhj opened this issue Aug 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@justinhj
Copy link
Owner

It's possible to get the estimated time remaining. For example with pmset the output is...

> pmset -g ps
Now drawing from 'Battery Power'
 -InternalBattery-0 (id=6094947)	94%; discharging; 7:08 remaining present: true

Although the code doesn't currently do it, you could parse the 7:08 remaining part and store it in the battery_status structure. This opens up the user to be able to display it on the statusline (although it may be a bit long).
"At some point" it may be possible to mouse hover the battery icon and display the time remaining in a tip.

@justinhj justinhj added the enhancement New feature or request label Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant