Skip to content

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.

1 participant