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

Add an option to use battery design capacity #964

Merged
merged 4 commits into from
Jan 18, 2021
Merged

Conversation

Ocisra
Copy link
Contributor

@Ocisra Ocisra commented Jan 3, 2021

This little PR implements a new option design-capacity to the battery module with default value false. If set to true, Waybar will use the design capacity of the battery instead of the actual full capacity which may be lower due to deterioration of the battery. With this option, ti should report the same battery percentage than i3status' default behavior.
I personally like to see it this way because I know how worn off my battery is.

I will edit the wiki as soon as you merge this PR.

}
if (!adapter_.empty() && status == "Discharging") {
bool online;
std::ifstream(adapter_ / "online") >> online;
if (online) {
if (online) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra space here

@Alexays
Copy link
Owner

Alexays commented Jan 18, 2021

Hi, thanks for the change.
Just a typo change and i'll merge this PR!

@Ocisra
Copy link
Contributor Author

Ocisra commented Jan 18, 2021

Sorry this change wasn't intended.
I changed it, the extra commit is because I forgot to exclude my .cache folder

@Alexays
Copy link
Owner

Alexays commented Jan 18, 2021

LGTM, thx, could you update github wiki?

@Alexays Alexays merged commit 66e5fda into Alexays:master Jan 18, 2021
@Ocisra
Copy link
Contributor Author

Ocisra commented Jan 18, 2021

Done,
thanks for merging

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