add timer to force pulseaudio to use 100% volume for sink inputs
This commit is contained in:
parent
7e3c021199
commit
31ec37cd3b
2 changed files with 16 additions and 0 deletions
5
.config/systemd/user/pulseaudio-assert-volume.service
Normal file
5
.config/systemd/user/pulseaudio-assert-volume.service
Normal 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"
|
11
.config/systemd/user/pulseaudio-assert-volume.timer
Normal file
11
.config/systemd/user/pulseaudio-assert-volume.timer
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=pulseaudio sickofit
|
||||
|
||||
[Timer]
|
||||
Persistent=False
|
||||
OnUnitActiveSec=1s
|
||||
OnUnitInctiveSec=1s
|
||||
AccuracySec=1ms
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Reference in a new issue