mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Add auto-recompile pacman hook for xmonad
This commit is contained in:
parent
75fbd46888
commit
90ebf8b1e5
15
root/usr/share/libalpm/hooks/xmonad-recompile.hook
Normal file
15
root/usr/share/libalpm/hooks/xmonad-recompile.hook
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Pacman hook to automatically recompile xmonad if it or any of it's dependencies were updated
|
||||
|
||||
[Trigger]
|
||||
Operation = Upgrade
|
||||
Operation = Install
|
||||
Type = Package
|
||||
Target = xmonad*
|
||||
Target = haskell*
|
||||
|
||||
[Action]
|
||||
Description = Recompiling Xmonad after package update...
|
||||
When = PostTransaction
|
||||
Depends = coreutils
|
||||
Depends = xmonad
|
||||
Exec = /usr/bin/bash -euc "command -v xmonad > /dev/null || exit 0; find /home -mindepth 1 -maxdepth 1 -type d -printf '%P\0' | xargs -0I'{}' su '{}' -c 'xmonad --recompile || true'"
|
Loading…
Reference in a new issue