You are not logged in.
I am trying to bind the mute button on my keyboard such that it mutes the currently active playback device.
When running off my laptop speakers, the SCONTROL I need to mute is Master. There is a PCM, but it cannot be muted.
However, when running off my USB speakers, the SCONTOL I need to mute is PCM since there is no Master.
Any ideas how do I do this? Am I forced to run the following trial-and-error style script each time?
amixer sset Master toggle
amixer sset PCM toggleOffline
Possibly answering my own question here, but after some reading it sounds like I need something like PulseAudio: a virtual sound card which I can assign once in ALSA, and then have everything routed through this central sound server. That way the only thing I need to mute is PulseAudio, right?
Offline