diff options
author | Simon Rettberg | 2021-11-23 10:22:33 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-11-23 10:22:33 +0100 |
commit | bfd2695c06d752606ddc28a62854380a6be1f101 (patch) | |
tree | d003f8c21095ae90d43f7adabd1bf88eb0fc5123 /core | |
parent | [hardware-stats] Only print nouveau driver warning if driver is in use (diff) | |
download | mltk-bfd2695c06d752606ddc28a62854380a6be1f101.tar.gz mltk-bfd2695c06d752606ddc28a62854380a6be1f101.tar.xz mltk-bfd2695c06d752606ddc28a62854380a6be1f101.zip |
[pulseaudio] Add script to select profile based on SLX_PREFERRED_SOUND_OUTPUT
Diffstat (limited to 'core')
-rw-r--r-- | core/modules/pulseaudio/data/etc/X11/Xsession.d/99-set-default-sound-output | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/modules/pulseaudio/data/etc/X11/Xsession.d/99-set-default-sound-output b/core/modules/pulseaudio/data/etc/X11/Xsession.d/99-set-default-sound-output new file mode 100644 index 00000000..02571fbe --- /dev/null +++ b/core/modules/pulseaudio/data/etc/X11/Xsession.d/99-set-default-sound-output @@ -0,0 +1,12 @@ +#!/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 +true |