From 5061945a2e7f48cbfcd6e6fc68d847b626ef5391 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Tue, 16 Nov 2021 17:52:05 -0800 Subject: [PATCH] add polybar hook --- pacman-hooks/polybar.hook | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pacman-hooks/polybar.hook diff --git a/pacman-hooks/polybar.hook b/pacman-hooks/polybar.hook new file mode 100644 index 0000000..180a556 --- /dev/null +++ b/pacman-hooks/polybar.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Upgrade +Operation = Remove +Type = Package +Target = * + +[Action] +Description = Updating Polybar package count... +Depends = polybar +When = PostTransaction +Exec = /usr/bin/bash -c '/usr/bin/polybar-msg hook package-updates 1 &>/dev/null || true'