francma / wob

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

Feature request: Allow values over 100 #54

Closed m-rey closed 3 years ago

m-rey commented 4 years ago

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.

Axenntio commented 3 years ago

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

Brod8362 commented 3 years ago

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.