Add unit to force source volume to level
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5bf94b810b
commit
51b1129ffb
1 changed files with 10 additions and 0 deletions
10
.config/systemd/user/source-volume@.service
Normal file
10
.config/systemd/user/source-volume@.service
Normal 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
|
Loading…
Reference in a new issue