Skip to content

Commit

Permalink
Try to fix audio only changing for running inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-parlette committed Aug 25, 2015
1 parent 395bfef commit 3bfe9c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions audio
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ function volume () {
function output () {
sink=`pactl list short sinks | grep $1 | cut -f1`
echo "Setting default sink to `pactl list short sinks | grep $1`...";
pacmd set-default-sink $1
pactl set-default-sink $1
echo "Moving current inputs to default sink..."
pacmd list-sink-inputs | grep index | while read line
pactl list-sink-inputs | grep index | while read line
do
echo "Moving input: ";
echo $line | cut -f2 -d' ';
echo "to sink: $1";
pacmd move-sink-input `echo $line | cut -f2 -d' '` $1
pactl move-sink-input `echo $line | cut -f1 -d' '` $1
done
}

Expand Down

0 comments on commit 3bfe9c7

Please sign in to comment.