geommer / yabar

A modern and lightweight status bar for X window managers.
MIT License
679 stars 49 forks source link

Add volume mapping option #140

Closed NBonaparte closed 7 years ago

NBonaparte commented 7 years ago

Adds an option to map the volume on a logarithmic scale, like how alsamixer does it. The algorithm is basically copied verbatim from the alsa-utils source, so it should display the same value.

Unfortunately I had to move around the internal options a little because we only have 3 at our disposal. I decided to group the device, mixer, and index together as that made the most sense.