From b861aa5eba55d73c1b269a9868bc0fc61cf02ebd Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 24 Nov 2021 21:48:55 +0100 Subject: pulseaudio: Add systemd user service for null sink .config/systemd/user/pulseaudio-null-sink@.service: Add templated user service to start a pulseaudio null sink. --- .config/systemd/user/pulseaudio-null-sink@.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/systemd/user/pulseaudio-null-sink@.service (limited to '.config/systemd/user') diff --git a/.config/systemd/user/pulseaudio-null-sink@.service b/.config/systemd/user/pulseaudio-null-sink@.service new file mode 100644 index 0000000..0064c90 --- /dev/null +++ b/.config/systemd/user/pulseaudio-null-sink@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Load %i Pulseaudio null sink +After=pipewire-pulse.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/pactl load-module module-null-sink object.linger=1 media.class=Audio/Sink sink_name=%i channel_map=FL,FR +ExecStop=/usr/bin/pactl unload-module module-null-sink +RemainAfterExit=yes + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2