add timer to force pulseaudio to use 100% volume for sink inputs

This commit is contained in:
Franzi 2021-07-09 12:41:01 +02:00
parent 7e3c021199
commit 31ec37cd3b
Signed by untrusted user: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,5 @@
[Unit]
Description=pulseaudio sickofit
[Service]
ExecStart=/usr/bin/bash -c "pactl list sink-inputs | grep -F 'Sink Input #' | cut -d# -f2 | while read id; do pactl set-sink-input-volume $id 100%; done"

View file

@ -0,0 +1,11 @@
[Unit]
Description=pulseaudio sickofit
[Timer]
Persistent=False
OnUnitActiveSec=1s
OnUnitInctiveSec=1s
AccuracySec=1ms
[Install]
WantedBy=timers.target