dotfiles/scripts/.local/share/scripts/pulseaudio-mic-mute

13 lines
234 B
Bash
Executable File

#!/bin/sh
pulsemixer $(\
pulsemixer --list-sources |\
grep Default |\
awk -v args="$args" '{
gsub(/,$/,"",$3);
cmdargs = cmdargs"--id "$3" "args" "
} END {
print cmdargs
}'
) --toggle-mute