dotfiles/.config/waybar/refresh-waybar-pkg-update-count.hook

10 lines
246 B
Text

# Refresh the package update count Waybar module
[Trigger]
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
When = PostTransaction
Exec = /bin/sh -c '! /bin/pgrep -u 1000 waybar || /bin/pkill -SIGRTMIN+3 -u 1000 waybar'