summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.hook19
-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