summaryrefslogtreecommitdiffstats
path: root/core/modules/pulseaudio/data/etc/X11/Xsession.d/99-set-default-sound-output
blob: 58d2484d266ef478d130ff653ce64083c48bf948 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/ash

[ -z "$SLX_PXE_CLIENT_IP" ] && . /opt/openslx/config

if [ -n "$SLX_PREFERRED_SOUND_OUTPUT" ] \
		&& [ "${SLX_PREFERRED_SOUND_OUTPUT}" != "SOUNDCARD" ]; then
	(
		sleep 5
		/opt/openslx/bin/pavucontrol-slx -o "$SLX_PREFERRED_SOUND_OUTPUT"
	) &
fi
# run the background daemon that increases volume for everything
/opt/openslx/bin/pavucontrol-slx -w &

true