Skip to content

Add the ability to clamp percentages to 99% #516

@Anuskuss

Description

@Anuskuss

Has this issue been covered in the Wiki?

  • I have read the Wiki and my issue is not covered.

Is there an existing issue reported already?

  • I have searched the existing issues, it does not exist.

Describe the new feature you would like

I use Vitals with fixed width because I don't want my dock to jump around. The way it works is it reserves one character worth of empty space once the percentage goes >= 10 and one additional if it goes to 100 (I know it's probably not coded that way but makes it easier to explain). If would like the ability to prevent it from reserving 3 characters by always keeping the percentage to <= 2 digits/characters by e.g. clamping the value to 99 (so 100% and 99% become the same thing). Alternatives could be using a double width character like e.g. the Roman 100 (C), using 1 followed by the double zero character (I can't find it right now but I remember seeing it), using the 100 emoji (💯), etc.
Maybe even additionally (with the same config option) make it so it always reserves 2 characters (e.g. %2d) so you don't have to wait for the percentage to reach 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions