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.
This commit is contained in:
Jeena 2026-04-11 14:41:24 +00:00
parent 14a94a4ece
commit feafe252dc
5 changed files with 43 additions and 0 deletions

View file

@ -73,6 +73,17 @@ ln -s ~/Projects/hypr-dotfiles/kitty kitty
ln -s ~/Projects/hypr-dotfiles/helix helix
```
To enable the auto-mute/unmute timers (mutes at 21:00, unmutes at
07:00, only when idle-inhibit is active), link the systemd user units:
```
systemctl --user link ~/Projects/hypr-dotfiles/systemd/user/auto-mute.service
systemctl --user link ~/Projects/hypr-dotfiles/systemd/user/auto-mute.timer
systemctl --user link ~/Projects/hypr-dotfiles/systemd/user/auto-unmute.service
systemctl --user link ~/Projects/hypr-dotfiles/systemd/user/auto-unmute.timer
systemctl --user enable --now auto-mute.timer auto-unmute.timer
```
You also need to install all the dependencies:
- hyprland