mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2023-02-13 20:55:19 -05:00
Adding pacman hooks.
This commit is contained in:
parent
4975ada3c9
commit
1aa6138866
2 changed files with 20 additions and 0 deletions
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'"
|
Loading…
Reference in a new issue