francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Allow values over 100

m-rey opened this issue · comments

It would be nice if values over 100 would be accepted and just displayed as if it they were 100. That way, when using wob for volume with audio boost (which allows values over 100), no hacky workaround would be needed to dsplay it correctly.

As workaround, you can simply get the minimum value between 100 and your volume output:

dc -e "[`pamixer --get-volume`]sM 100d `pamixer --get-volume`<Mp"

100 is here to avoid getting over 100
pamixer --get-volume is the command that get the volume

I'm willing to implement this. Maybe add a flag to enable/disable it, allow a different color when the bar is over 100% (and maybe have it wrap around in that color?), etc.