os/+arch (pacman): add polybar hook + update lemonbar hook
This commit is contained in:
parent
dd5a14547b
commit
6c18def51e
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
12
os/+arch/pacman.d/hooks/polybar.hook
Normal file
12
os/+arch/pacman.d/hooks/polybar.hook
Normal 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"
|
||||
|
Loading…
Reference in a new issue