From e9074cd643054e4565b2d021007a4480bb58a71c Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Sat, 6 Sep 2025 03:11:04 +0200 Subject: [PATCH] feat(waybar-modules): pacman module can now update the system when we click on it --- .config/waybar/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/waybar/config b/.config/waybar/config index 79c36b5..2aa0001 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -20,7 +20,8 @@ "interval": 3600, // every hour "exec": "checkupdates | wc -l", // # of updates "exec-if": "ping -c 1 -W 1 -q archlinux.org >/dev/null 2>&1 && [ $(checkupdates | wc -l) -gt 100 ]", - "on-click": "wezterm -e yay", + "on-click": "wezterm start -- zsh -c 'yay; pkill -SIGRTMIN+8 waybar'", + "signal": 8, "tooltip-format": "{text} updates available", }, "custom/do-not-disturb": {