(X)Ubuntu microphone mute/unmute script
The goal of this script was to have a simple script, binded with a shortcut which allows to mute/unmute all the microphones and to display a nice notification in the process. This is the simplest version working on xubuntu 14.04 with pulseaudio. <pre lang="bash">#!/bin/bash ACTION=1 #1 mute, 0 unmute SCNT=$(pacmd list-sources | grep muted | wc -l) MUTED=$(pacmd list-sources | grep muted | grep yes) if [ $? == 0 ]; then ACTION=0 notify-send -i microphone-sensitivity-medium "Microphone" "Unmutting $SCNT sources....