@keybreak has presented 2 hooks here and I wonder if you can use both at the same time. Because both use the same triggers and would then have to cut out each other?
You can combine them:
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Cleaning pacman cache...
When = PostTransaction
Exec = /usr/bin/paccache -rk 2 -ruk 0
should i see the description in the terminal or does it all run silently in the background?
Yes, “Cleaning pacman cache…”
btw, they don’t cut out each other it’s consecutive in execution, i’ve separated them in my post because some people might want one and not the other ![]()
