mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Added muteinputs and modified sb-volume
This commit is contained in:
parent
2a7059eaba
commit
229e3512ca
17
.local/bin/muteinputs
Normal file
17
.local/bin/muteinputs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/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
|
||||||
Loading…
x
Reference in New Issue
Block a user