From 092e679bfd915bd8c4bcf76c3885b710783e37b8 Mon Sep 17 00:00:00 2001 From: cronidea <86153674+cronidea@users.noreply.github.com> Date: Sun, 28 Nov 2021 14:28:20 +0000 Subject: [PATCH] Delete muteinputs --- .local/bin/muteinputs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .local/bin/muteinputs diff --git a/.local/bin/muteinputs b/.local/bin/muteinputs deleted file mode 100644 index 8060b71c..00000000 --- a/.local/bin/muteinputs +++ /dev/null @@ -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