summaryrefslogtreecommitdiff
path: root/.config/xmonad/pacman-hooks
diff options
context:
space:
mode:
authorThanosApollo <[email protected]>2022-10-12 12:58:00 +0300
committerThanosApollo <[email protected]>2022-10-12 12:58:00 +0300
commit6476ac80e8959bb8034a0a2860023d8eb2ac8375 (patch)
treec5b5eaaad7e66e913f65f1bd19c45d70963a72a6 /.config/xmonad/pacman-hooks
parent65a2b283f6b5c51809ed2fd257532f7fe55075ec (diff)
Update xmonad system and zsh
Diffstat (limited to '.config/xmonad/pacman-hooks')
-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'"