Dependencies sudo apt-get install libasound2-dev Compile & install sudo make install Usage Get volume of default Mater mixer ./alsavolume Why? I needed a simple program that will read master volume for my dwmstatus configuration.