summaryrefslogtreecommitdiffstats
path: root/pulse-loopback
diff options
context:
space:
mode:
Diffstat (limited to 'pulse-loopback')
-rwxr-xr-xpulse-loopback9
1 files changed, 9 insertions, 0 deletions
diff --git a/pulse-loopback b/pulse-loopback
new file mode 100755
index 0000000..a756746
--- /dev/null
+++ b/pulse-loopback
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+source=$1
+
+id=$(pactl load-module module-loopback channels=1 source=$source)
+echo "$id"
+trap "pactl unload-module $id" EXIT TERM INT
+echo "press enter to remove loopback"
+read