Skip to content

Built-in profiles conflict with user configuration #1371

@itshog

Description

@itshog

As stated in the wiki, the new brightness module ships with default profiles which set the icon according to the percentage. This seems to override the user-specified format property: in particular, my use case is showing the number without the percentage symbol (I use a vertical bar, so having the "%" symbols takes up unnecessary space and I find it quite ugly), but something like this doesn't work:

[[end]]
type = "brightness"
format = "{percentage}"
justify = "center"

[end.mode]
type = "systemd"
subsystem = "backlight"

In fact, I believe that the format option is overridden by the profiles which set the icons. Interestingly though I found out that the only way to override these profiles is by creating a new one for each of the levels mentioned in the wiki: for instance, something like the following only works when the percentage is exactly 30, everything below will still have the built-in formatting with the percentage symbol.

[[end]]
type = "brightness"
format = "{percentage}"
justify = "center"

[end.mode]
type = "systemd"
subsystem = "backlight"

[end.profiles.30]
when = 30
format = "\n{percentage}"

I hope this could be fixed, and thanks for the amazing project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:ConfigRelating to bar configuration and styling options.A:CoreRelating to core bar functionality.M:BrightnessRelated to the Brightness moduleM:Network ManagerRelated to the Network Manager moduleM:VolumeRelated to the Volume moduleP:HighBug in core functionality preventing use, which cannot be easily worked aroundT:BugFunctionality broken or otherwise not working as intended.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions