diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-02 20:54:25 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-02 20:54:25 +0530 |
commit | 427d0e21ad79a96422ea5597efcf2250cd5e0032 (patch) | |
tree | 1363b9491ae6cd9502daf6123d598999dcc2e0da /.config | |
parent | fe684dab9bfdaedef412df009c8c7ffb2a52c35c (diff) |
Adding pacman hooks to recompile XMonad
Diffstat (limited to '.config')
-rw-r--r-- | .config/XMonad/pacman-hooks/recompile-xmonad.hook | 10 | ||||
-rw-r--r-- | .config/XMonad/pacman-hooks/recompile-xmonadh.hook | 10 |
2 files changed, 20 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'" diff --git a/.config/XMonad/pacman-hooks/recompile-xmonadh.hook b/.config/XMonad/pacman-hooks/recompile-xmonadh.hook new file mode 100644 index 0000000..c014cbb --- /dev/null +++ b/.config/XMonad/pacman-hooks/recompile-xmonadh.hook @@ -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'" |