summaryrefslogtreecommitdiff
path: root/usr/share/libalpm
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-09-22 22:37:42 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-09-22 22:37:42 +0800
commit4707906fd1d3d5ad31b91657279f9cfff3b437a4 (patch)
tree65dbd13ced7c86a667871e6420da00796af38243 /usr/share/libalpm
parentecbae1f7cd44a27ee5f561213d6ffc5c45c34199 (diff)
added hyprland-hyprpm hook to update the hyprpm when hyprland updates
Diffstat (limited to 'usr/share/libalpm')
-rw-r--r--usr/share/libalpm/hyprland-hyprpm.hook12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/share/libalpm/hyprland-hyprpm.hook b/usr/share/libalpm/hyprland-hyprpm.hook
new file mode 100644
index 00000000..0627eacb
--- /dev/null
+++ b/usr/share/libalpm/hyprland-hyprpm.hook
@@ -0,0 +1,12 @@
+[Trigger]
+Type = Package
+Operation = Install
+Operation = Upgrade
+Target = hyprland
+Target = hyprland-git
+
+[Action]
+Description = Hyprland: updating hyprpm
+When = PostTransaction
+Exec = /usr/bin/sudo -u system /usr/bin/hyprpm update
+NeedsTargets