• MagnificentSteiner@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 day ago

    Meh, I already have a global mute shortcut. I have a keyboard shortcut for this script I found somewhere that toggles mic audio capture in ALSA.

    #!/bin/bash

    mic_on=$(amixer get Capture | grep '\[on\]')

    if [ "$mic_on" = "" ] ; then

    amixer set Capture toggle && paplay /usr/share/sounds/ocean/stereo/device-added.oga

    else

    amixer set Capture toggle && paplay /usr/share/sounds/ocean/stereo/device-removed.oga

    fi

    • thingsiplay@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      This will mute all applications. While a workaround for your setup, on other use cases it wouldn’t work if the user wants to mute a specific application only.