Skip to content

Enhancement: JSON return type #17

@timscreep

Description

@timscreep

There is a thing in the waybar documentation that allows you to customize the appearance from the returned values.

Image
https://github.com/Alexays/Waybar/wiki/Module:-Custom#module-custom-config-return-type

Let's assume in the polycat config we can set which class is returned and at what value. (Conventionally, 0-30 = low, 30-60 = mid, 60+ = high).
and in style.css waybar we can write something like:

#custom-polycat.low{
    color: @green
}
#custom-polycat.mid{
    color: @yellow
}
#custom-polycat.high{
    color: @red
}

IMPORTANT!

so that the user himself sets at what values ​​which class is returned. What if a person wants each percentage for its own color?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions