Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3807403
D1143.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1143.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 1, 12:51 (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2274511
Default Alt Text
D1143.diff (1 KB)
Attached To
Mode
D1143: Add PulseAudio move skins command
Attached
Detach File
Event Timeline
Log In to Comment