Add a --quiet mode that updates the pending file without notifying, run by the new update-notify-quiet.service, so aur sync doesn't notify per package.
11 lines
466 B
Bash
Executable File
11 lines
466 B
Bash
Executable File
#!/bin/bash
|
|
# Run update-notify for every logged-in user whose timer is active (called by the pacman hook as root)
|
|
systemctl list-units --plain --no-legend --state=running 'user@*.service' |
|
|
while read -r unit _; do
|
|
uid=${unit#user@}
|
|
uid=${uid%.service}
|
|
user=$(id -nu "$uid") || continue
|
|
systemctl --user -M "$user@" is-active --quiet update-notify.timer || continue
|
|
systemctl --user -M "$user@" start --no-block update-notify-quiet.service
|
|
done
|