From a4af4eb3083ed54caad1d8b09b97e311c2ecc84e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 25 May 2017 11:45:16 +0200 Subject: [PATCH] polybar: add msg.sh for pacman hook --- os/+arch/.config/polybar/msg.sh | 2 ++ os/+arch/pacman.d/hooks/polybar.hook | 14 ++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100755 os/+arch/.config/polybar/msg.sh 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