From 427d0e21ad79a96422ea5597efcf2250cd5e0032 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 2 Feb 2022 20:54:25 +0530 Subject: Adding pacman hooks to recompile XMonad --- .config/XMonad/pacman-hooks/recompile-xmonad.hook | 10 ++++++++++ .config/XMonad/pacman-hooks/recompile-xmonadh.hook | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .config/XMonad/pacman-hooks/recompile-xmonad.hook create mode 100644 .config/XMonad/pacman-hooks/recompile-xmonadh.hook (limited to '.config/XMonad') 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'" -- cgit v1.2.3