Page MenuHomeDevCentral

pa-movesinks.sh
No OneTemporary

pa-movesinks.sh

#!/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/x-shellscript
Expires
Sun, Nov 15, 02:09 (5 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4248671
Default Alt Text
pa-movesinks.sh (280 B)

Event Timeline