Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Set default pulseaudio sink if daemon is already running
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Mar 5, 2014
1 parent 2761d27 commit ad36b59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src-qt4/xtrafiles/local/share/pcbsd/xstartup/startpulseaudio.sh
Expand Up @@ -12,10 +12,10 @@ pulseaudio --check
if [ $? -ne 0 ] ; then
# Start pulseaudio
pulseaudio --start
fi

# Get the default unit
dU=`sysctl hw.snd.default_unit | awk '{print $2}'`
# Get the default unit
dU=`sysctl hw.snd.default_unit | awk '{print $2}'`

# Set the default sink to match default audio device
pactl set-default-sink $dU
fi
# Set the default sink to match default audio device
pactl set-default-sink $dU

0 comments on commit ad36b59

Please sign in to comment.