diff --git a/os/+arch/.config/polybar/msg.sh b/os/+arch/.config/polybar/msg.sh new file mode 100755 index 00000000..e2c3b3ee --- /dev/null +++ b/os/+arch/.config/polybar/msg.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +echo hook:module/pkg1 >>/tmp/polybar_mqueue.* diff --git a/os/+arch/pacman.d/hooks/polybar.hook b/os/+arch/pacman.d/hooks/polybar.hook index 174f58f1..46bc771f 100644 --- a/os/+arch/pacman.d/hooks/polybar.hook +++ b/os/+arch/pacman.d/hooks/polybar.hook @@ -1,12 +1,10 @@ [Trigger] -Operation=Install -Operation=Upgrade -Operation=Remove -Type=Package -Target=* +Operation = Upgrade +Type = Package +Target = * [Action] -Description="Updating polybar" -When=PostTransaction -Exec="/usr/bin/polybar-msg hook pkg 1" +Description = "Updating polybar" +When = PostTransaction +Exec = /home/hlissner/.config/polybar/msg.sh