Skip to content

Conditional Display of Battery #956

@boydthomson

Description

@boydthomson

My goals are to keep indicators hidden when they're not important. I don't need to know how much time is remaining on my battery when it's full. I'd like to only display the battery module when I've got < X time/percentage remaining.

I'm able so do something similar with the warn feature in the temperature module, but I can't find anything similar for battery. This is how I do my cpu temp. "label =" is blank but label-warn. Similar 'warn' feature doesn't seem to be present in module/battery.

[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 68

format =
format-underline = ${colors.background}
format-warn =
format-warn-underline = ${self.format-underline}

label =
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions