#!/bin/sh
if amixer get Capture | tail -2 | grep -q '\[on\]'; then
paplay ~/.local/bin/tools/audio/mic_muted.wav
lmc mute
lmc undeaf
else
lmc unmute
paplay ~/.local/bin/tools/audio/mic_activated.wav
fi