Add vbattery and hbattery prompt items#649
Open
jose1711 wants to merge 1 commit intoIlanCosman:mainfrom
Open
Conversation
Contributor
Author
|
This also extends #578 (however lacks percentage which could be added separately) |
8e66d75 to
422c262
Compare
Two new items for displaying battery status:
- `vbattery`: font icons with 11 charge levels, separate charging/discharging
icon sets and color alerts for low/critical
- `hbattery`: block bar with 5 levels using integer bucketing
Both items share common configuration under `tide_battery_*`
(method, thresholds, critical/low colors) while each has its own
`tide_<item>_bg_color` and `tide_<item>_color`.
Supported backends: upower (default), sysfs (with customizable battery
name), termux.
|
Perhaps fish could do a toggle in a variable for the percentage display? Either way, thanks a lot for the work |
Contributor
Author
Thank you. Instead of a toggle I was thinking of adding a separate item ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two new items for displaying battery status:
vbattery: font icons with 11 charge levels, separate charging/discharging icon sets and color alerts for low/criticalhbattery: block bar with 5 levels using integer bucketingBoth items share common configuration under
tide_battery_*(method, thresholds, critical/low colors) while each has its owntide_<item>_bg_colorandtide_<item>_color.Supported backends: upower (default), sysfs, termux.
Description
Motivation and Context
Closes #294
Screenshots (if appropriate)
How Has This Been Tested
Added both items to left prompt items on a laptop running on battery. Verified visually. Tested via
littlecheck.py.Checklist