[Trigger] Operation=Install Operation=Upgrade Operation=Remove Type=Package Target=* [Action] Description="Updating polybar" When=PostTransaction Exec="/usr/bin/polybar-msg hook pkg 1"