Page MenuHomeDevCentral

D1143.diff
No OneTemporary

D1143.diff

diff --git a/audio/Makefile b/audio/Makefile
new file mode 100644
--- /dev/null
+++ b/audio/Makefile
@@ -0,0 +1,15 @@
+# ___ ___ __ __ __ __
+# | Y .--.--.-----| |_.-----.----. | |--|__| |_.----.-----.
+# |. | | | | | _| -__| _| | <| | _| _| _ |
+# |. / \ |___ |__|__|____|_____|__| |__|__|__|____|__| |_____|
+# |: |_____|
+# |::.|:. | Dereckson's $HOME/bin personal collection
+# `--- ---' Wynter-kitro edition
+
+INSTALL=/usr/bin/install
+PREFIX?=${HOME}
+
+make:
+
+make install:
+ ${INSTALL} pa-movesinks.sh ${PREFIX}/bin/pa-movesinks
diff --git a/audio/pa-movesinks.sh b/audio/pa-movesinks.sh
new file mode 100755
--- /dev/null
+++ b/audio/pa-movesinks.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ $# -eq 0 ]
+then
+ echo "Usage: $(basename "$0") <new default sink>"
+ exit 64
+fi
+
+SINK=$1
+
+pacmd set-default-sink "$SINK"
+pacmd list-sink-inputs | grep index | while read -r line
+do
+ pacmd move-sink-input "$(echo "$line" | cut -f2 -d' ')" "$SINK"
+done

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 02:53 (7 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2314395
Default Alt Text
D1143.diff (1 KB)

Event Timeline