os/+arch (pacman): add polybar hook + update lemonbar hook

This commit is contained in:
Henrik Lissner 2017-04-29 23:16:05 -04:00
parent dd5a14547b
commit 6c18def51e
3 changed files with 19 additions and 1 deletions

View file

@ -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

View file

@ -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"

View file

@ -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"