Pacman hooks

@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
4 Likes

should i see the description in the terminal or does it all run silently in the background?

Yes, “Cleaning pacman cache…”

1 Like

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 :upside_down_face:

honka_animated-128px-47

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.