francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.
ISC License
896 stars 49 forks source link

Feature request: Add option to display the actual percentage number in the bar #72

Open RicArch97 opened 3 years ago

RicArch97 commented 3 years ago

Sometimes when changing the volume or brightness when in fullscreen, it might be usefull to display the percentage number in the bar as your will not be able to see your top/bottom panel. This is especially useful when incrementing or decrementing by 1 percent at the time.

I have the following in mind:

Option

--show-number

Shows the percentage number in the bar.

Config

--text-position <middle> <top> <bottom> <right> <left>

The position of the number in the bar. Left, right, top and bottom shows the number outside of the border in the center of their position. Middle displays the number within the bar, in the middle.

--text-color <rrggbb[aa]>

Text color in rrggbb or rrggbbaa.

--font <font>

Sets the font of the text.

--font-size

Fixed font size for the number text. (should not exceed the size of the bar)

--text-margin-right

Set margin on the left side of the text.

--text-margin-left

Set margin on the right side of the text.

--text-margin-top

Set margin above the text.

--text-margin-bottom

Set margin below the text.

Margins should not cause the text to exceed the border of the bar, if a value greater than the possible value is passed, the last possible value is used.

Scrumplex commented 2 years ago

Maybe we could use fcft for this. It seems to be readily available on many distributions and probably in use by other applications that are common among a Wayland compositor.