aboutsummaryrefslogtreecommitdiff
path: root/.config/XMonad
diff options
context:
space:
mode:
Diffstat (limited to '.config/XMonad')
-rw-r--r--.config/XMonad/pacman-hooks/recompile-xmonad.hook10
-rw-r--r--.config/XMonad/pacman-hooks/recompile-xmonadh.hook10
2 files changed, 20 insertions, 0 deletions
diff --git a/.config/XMonad/pacman-hooks/recompile-xmonad.hook b/.config/XMonad/pacman-hooks/recompile-xmonad.hook
new file mode 100644
index 0000000..5ef068c
--- /dev/null
+++ b/.config/XMonad/pacman-hooks/recompile-xmonad.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Upgrade
+Type = Package
+Target = xmonad*
+
+[Action]
+Description = Recompiling Xmonad now because of Xmonad updates...
+When = PostTransaction
+Depends = xmonad
+Exec = /bin/sh -c "runuser -l $( who | cut -d ' ' -f1 | uniq) -c 'xmonad --recompile'"
diff --git a/.config/XMonad/pacman-hooks/recompile-xmonadh.hook b/.config/XMonad/pacman-hooks/recompile-xmonadh.hook
new file mode 100644
index 0000000..c014cbb
--- /dev/null
+++ b/.config/XMonad/pacman-hooks/recompile-xmonadh.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Upgrade
+Type = Package
+Target = haskell*
+
+[Action]
+Description = Recompiling Xmonad now because of Haskell updates ...
+When = PostTransaction
+Depends = xmonad
+Exec = /bin/sh -c "runuser -l $( who | cut -d ' ' -f1 | uniq) -c 'xmonad --recompile'"