diff --git a/os/+arch/install b/os/+arch/install index 1d1d6ae6..e5b1f803 100755 --- a/os/+arch/install +++ b/os/+arch/install @@ -62,4 +62,10 @@ if [[ -z $SERVER ]]; then redshift firefox \ alsa-utils \ dictd dict-gcide + + hookdest=/etc/pacman.d/hooks + sudo mkdir -p "$hookdest" + for hook in $PWD/$hookdest/*.hook; do + [[ -f $hookdest/${hook##*/} ]] || sudo ln -svf $hook $hookdest/ + done fi diff --git a/os/+arch/pacman.d/hooks/lemonbar.hook b/os/+arch/pacman.d/hooks/lemonbar.hook index dc8ac6b9..c886b9d3 100644 --- a/os/+arch/pacman.d/hooks/lemonbar.hook +++ b/os/+arch/pacman.d/hooks/lemonbar.hook @@ -6,7 +6,7 @@ Type=Package Target=* [Action] -Description="Updating lemonbar updates segemnt" +Description="Updating lemonbar" When=PostTransaction Exec="/home/hlissner/.config/panel/panel-pacman-hook" diff --git a/os/+arch/pacman.d/hooks/polybar.hook b/os/+arch/pacman.d/hooks/polybar.hook new file mode 100644 index 00000000..174f58f1 --- /dev/null +++ b/os/+arch/pacman.d/hooks/polybar.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation=Install +Operation=Upgrade +Operation=Remove +Type=Package +Target=* + +[Action] +Description="Updating polybar" +When=PostTransaction +Exec="/usr/bin/polybar-msg hook pkg 1" +