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

Custom battery %emptytime string when battery is full #479

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

riazufila
Copy link

@riazufila riazufila commented Jan 16, 2022

Allow a custom string return for %emptytime for when battery is full. The custom string can be set from the config file in battery module with the option battery_full_emptytime.

Current behavior of %emptytime when battery is full is as below.

image

battery all {
        format = "<span background='#458588'> %percentage %status (while != %emptytime) </span>"
        low_threshold = 30
        threshold_type = "percentage"
}

Instead, with this PR, when battery is full, the battery module will display such as below. Of course, the value for battery_full_emptytime can be changed into any other string aside from "false".

image

battery all {
        format = "<span background='#458588'> %percentage %status (while != %emptytime) </span>"
        low_threshold = 30
        threshold_type = "percentage"
        battery_full_emptytime = "false"
}

@riazufila
Copy link
Author

This PR is made to entertain #477.

@4nd3r 4nd3r mentioned this pull request Aug 21, 2023
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.

None yet

1 participant