diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-07-18 16:56:47 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-07-18 16:56:47 +0800 |
| commit | 7c3e783f91fa3fe63a965608d142797774ac5e80 (patch) | |
| tree | d3bca27d4b0528a1695ba37f9fd956977ced09e8 | |
| parent | d639eab25a40dfb7c6141fc5e8d74daae41af09f (diff) | |
move: pacman hooks
| -rw-r--r-- | etc/pacman.d/hooks/discord-patch.hook (renamed from usr/share/libalpm/hooks/discord-patch.hook) | 0 | ||||
| -rw-r--r-- | etc/pacman.d/hooks/spotify.hook | 19 | ||||
| -rw-r--r-- | etc/pacman.d/hooks/zz-snap-pac-postz-grub.hook (renamed from usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook) | 0 |
3 files changed, 19 insertions, 0 deletions
diff --git a/usr/share/libalpm/hooks/discord-patch.hook b/etc/pacman.d/hooks/discord-patch.hook index e58c2148..e58c2148 100644 --- a/usr/share/libalpm/hooks/discord-patch.hook +++ b/etc/pacman.d/hooks/discord-patch.hook diff --git a/etc/pacman.d/hooks/spotify.hook b/etc/pacman.d/hooks/spotify.hook new file mode 100644 index 00000000..70fccc56 --- /dev/null +++ b/etc/pacman.d/hooks/spotify.hook @@ -0,0 +1,19 @@ +[Trigger] +Type = Path +Operation = Install +Operation = Upgrade +Target = opt/spotify + +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = spotify +Target = spotify-adblock +Target = spicetify-cli + +[Action] +Description = Patching spotify with spicetify... +When = PostTransaction +Exec = /usr/bin/sh -c "/usr/bin/spicetify apply || /usr/bin/spicetify backup apply" +NeedsTargets diff --git a/usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook b/etc/pacman.d/hooks/zz-snap-pac-postz-grub.hook index 8eb00da4..8eb00da4 100644 --- a/usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook +++ b/etc/pacman.d/hooks/zz-snap-pac-postz-grub.hook |
