Delete muteinputs

This commit is contained in:
cronidea 2021-11-28 14:28:20 +00:00 committed by GitHub
parent d5d3d1916b
commit 092e679bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +0,0 @@
#!/bin/sh
# only select sources that are an actual microphone
sources="$(pamixer --list-sources | awk '!/Built/{ cnt++ ; if (cnt == 2) print $1 }')"
# check if the first source that is not a monitor is muted
muted="$(pamixer --source "$(echo "$sources" | head -1)" --get-mute)"
if [ "$muted" = "false" ]; then
for i in $sources; do
pamixer --source "$i" -m
done
else
for i in $sources; do
pamixer --source "$i" -u
done
fi