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

11 lines
246 B
Text
Raw Normal View History

# 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'