Add unit to force source volume to level

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-11-04 22:52:41 +01:00
parent 5bf94b810b
commit 51b1129ffb
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -0,0 +1,10 @@
[Unit]
Description=Forces volume to stay at a level despite browser objecting
After=pulseaudio.service
Requires=pulseaudio.service
[Service]
ExecStart=/usr/bin/bash -e -c 'while true; do pactl set-source-volume @DEFAULT_SOURCE@ %i%; sleep 0.1; done'
[Install]
WantedBy=default.target