mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-14 04:07:18 +00:00
16 lines
506 B
Plaintext
16 lines
506 B
Plaintext
|
# 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'"
|