mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-20 20:52:21 +01:00
Guard _audit against overwriting reports. Todo: 364208fc Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
18 lines
845 B
Desktop File
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
|