I'm using Ubuntu 14.04.
Is there any command line tool that would give me the current volume of any audio input or output device given the name of that device?
pacmd
is only useful for setting the volumes, it cannot give you the current volume of a particular device. Ponymix
is proven to be buggy already as I've tried it and it only sets and gets the volume of the default device. amixer
or aplay
doesn't seem to have any such option either, same story with aslamixer
. Is the any other cmd tool to do the job?
amixer
.pactl list sinks
will give you all. This can then further be scripted for a shorter output (see askubuntu.com/questions/456842/check-pulseaudio-sink-volume for a Perl example).