summaryrefslogtreecommitdiff
path: root/.config/xmonad/pacman-hooks/recompile-xmonad.hook
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/recompile-xmonad.hook
parent65a2b283f6b5c51809ed2fd257532f7fe55075ec (diff)
Update xmonad system and zsh
Diffstat (limited to '.config/xmonad/pacman-hooks/recompile-xmonad.hook')
-rw-r--r--.config/xmonad/pacman-hooks/recompile-xmonad.hook10
1 files changed, 10 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'"