hypr-dotfiles/systemd/user/auto-unmute.service
Jeena feafe252dc Add systemd timers to auto-mute/unmute when idle-inhibit is active
Mutes audio at 21:00 and unmutes at 07:00, but only when the
idle-inhibit toggle is active (PID file exists). This is useful
for leaving the computer running overnight for SSH access while
keeping it quiet for sleeping.
2026-04-11 14:41:24 +00:00

7 lines
268 B
Desktop File

[Unit]
Description=Unmute audio when idle-inhibit is active
[Service]
Type=oneshot
ExecCondition=/bin/bash -c 'test -f ${XDG_RUNTIME_DIR}/idle-inhibit.pid && kill -0 $(cat ${XDG_RUNTIME_DIR}/idle-inhibit.pid)'
ExecStart=/usr/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ 0