dotfiles/.config/eww/refresh-pkg-updates.hook

10 lines
241 B
Text

# Copy to /etc/pacman.d/hooks/
[Trigger]
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
When = PostTransaction
Exec = /bin/sh -c '! /bin/pgrep -u 1000 pkg-updates.sh || /bin/pkill -SIGUSR1 -u 1000 pkg-updates.sh'