Для PulseAudio Роланд Хаас написал инструмент:
https://github.com/rhaas80/pa_volume
Мне пришлось установить libpulse-dev
linux-libc-dev
libc6-dev
zlib1g-dev
libpcre3-dev
libglib2.0-0
libglib2.0-dev
.
Вам также может понадобиться компилятор (gcc )to make
.
Источник:https://askubuntu.com/a/968540/382812«Как изменить громкость воспроизведения pulseaudio -приложений / -потоков, которые в данный момент не используются?»
Если модуль.service будет выполняться из модуля.timer, он не может иметь RemainAfterExit=true
. В документации systemd упоминается, что:
Note that in case the unit to activate is already active at the time the timer elapses it is not restarted, but simply left running. There is no concept of spawning new service instances in this case. Due to this, services with RemainAfterExit= set (which stay around continuously even after the service's main process exited) are usually not suitable for activation via repetitive timers, as they will only be activated once, and then stay around forever.
Итак, удалите RemainAfterExit=true
и все заработает.