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

Battery %emptytime returns empty string #477

Open
riazufila opened this issue Jan 7, 2022 · 1 comment
Open

Battery %emptytime returns empty string #477

riazufila opened this issue Jan 7, 2022 · 1 comment

Comments

@riazufila
Copy link

riazufila commented Jan 7, 2022

When my laptop's battery is full, the %emptytime will return as an empty string. How do I make it return a custom text or symbol?

@riazufila riazufila changed the title Battery %emptytime Battery %emptytime return Jan 7, 2022
@riazufila
Copy link
Author

image

This is my i3status output based on the following configurations.

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

However, when the battery is full, %emptytime will return an empty string. So i3status output will appear as the following.

image

What I want to achieve is to be able to return a custom string for %emptytime when battery is full.

@riazufila riazufila changed the title Battery %emptytime return Battery %emptytime returns empty string Jan 16, 2022
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

No branches or pull requests

1 participant