diff options
author | David Runge <dave@sleepmap.de> | 2021-11-24 21:48:55 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2021-11-24 21:48:55 +0100 |
commit | b861aa5eba55d73c1b269a9868bc0fc61cf02ebd (patch) | |
tree | a8874822cc853b5f972ef6b047e8a3ecc256e380 | |
parent | b488a22b92dc0b365566c114df439181793426ae (diff) | |
download | dotfiles-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.
-rw-r--r-- | .config/systemd/user/pulseaudio-null-sink@.service | 12 |
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 |