mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-25 04:20:24 +10:00
Adding pacman hooks.
This commit is contained in:
10
.xmonad/pacman-hooks/recompile-xmonad.hook
Normal file
10
.xmonad/pacman-hooks/recompile-xmonad.hook
Normal file
@@ -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'"
|
||||||
10
.xmonad/pacman-hooks/recompile-xmonadh.hook
Normal file
10
.xmonad/pacman-hooks/recompile-xmonadh.hook
Normal file
@@ -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'"
|
||||||
Reference in New Issue
Block a user