aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-15 11:52:03 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-15 11:52:03 +0530
commit501dc534acbac707998020343bca7a2af3c635ca (patch)
tree46aa73cfcf84996401272ca7e6865b899b3e5f73
parent1b199983fbcc6ff7f17d300235158c9e9f44d25b (diff)
setting default mic in virtual_mic.sh
-rwxr-xr-x[-rw-r--r--].scripts/virtual_mic.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.scripts/virtual_mic.sh b/.scripts/virtual_mic.sh
index 20d791d..a33382d 100644..100755
--- a/.scripts/virtual_mic.sh
+++ b/.scripts/virtual_mic.sh
@@ -8,3 +8,6 @@ pactl load-module module-null-sink media.class=Audio/Duplex sink_name=VirtualMic
pactl load-module module-loopback source="VirtualSpeaker.monitor" sink="$(pactl get-default-sink)"
pactl load-module module-loopback source="$(pactl get-default-source)" sink="VirtualMicrophone"
pactl load-module module-loopback source="VirtualSpeaker.monitor" sink="VirtualMicrophone"
+
+# set default mic
+pactl set-default-source "VirtualMicrophone"