aboutsummaryrefslogtreecommitdiffstats
path: root/.config/systemd/user/pulseaudio-null-sink@.service
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2021-11-24 21:48:55 +0100
committerDavid Runge <dave@sleepmap.de>2021-11-24 21:48:55 +0100
commitb861aa5eba55d73c1b269a9868bc0fc61cf02ebd (patch)
treea8874822cc853b5f972ef6b047e8a3ecc256e380 /.config/systemd/user/pulseaudio-null-sink@.service
parentb488a22b92dc0b365566c114df439181793426ae (diff)
downloaddotfiles-b861aa5eba55d73c1b269a9868bc0fc61cf02ebd.tar.gz
dotfiles-b861aa5eba55d73c1b269a9868bc0fc61cf02ebd.tar.bz2
dotfiles-b861aa5eba55d73c1b269a9868bc0fc61cf02ebd.tar.xz
dotfiles-b861aa5eba55d73c1b269a9868bc0fc61cf02ebd.zip
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.
Diffstat (limited to '.config/systemd/user/pulseaudio-null-sink@.service')
-rw-r--r--.config/systemd/user/pulseaudio-null-sink@.service12
1 files changed, 12 insertions, 0 deletions
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