wake-alarm/scripts/pc/wake-alarm-ring-alsa.service
Krzysztof kuhy Rudnicki 224015cc2e Ring via PipeWire when ALSA card is busy
Guard _audit against overwriting reports.

Todo: 364208fc

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 09:07:40 +01:00

18 lines
845 B
Desktop File

[Unit]
Description=Wake Alarm fallback ring straight to the speakers (ALSA, root)
Documentation=https://github.com/kuhyx/wake-alarm
[Service]
# Started and stopped only by the user's wake-alarm-fallback.service through
# `sudo -n systemctl start|stop` (see /etc/sudoers.d/wake-alarm), when no
# graphical session owns the sound: the night lockdown masks lightdm, and
# the user is not in `audio`, so only root can reach the card.
Type=simple
# install.sh replaces @USER@: whose PipeWire the script falls back to when
# the card is busy.
Environment=WAKE_ALARM_USER=@USER@
ExecStart=/usr/local/lib/wake-alarm/ring_alsa.sh /usr/local/share/wake-alarm/ring.wav /usr/local/share/wake-alarm/ring_loop.wav
# Backstop for a fallback tick that died without stopping this unit: never
# ring longer than the 30-min cap plus a minute.
RuntimeMaxSec=31min