From 6e8cbffb2e346c9a2da2656de3611cdb22acba14 Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Sat, 6 Sep 2025 18:45:42 +0200 Subject: [PATCH] feat(waybar-config): pacman module: do not ping to archlinux server, just run cheupdates, it will return false if no connection is available --- .config/waybar/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/waybar/config b/.config/waybar/config index 2aa0001..9c66619 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -19,7 +19,7 @@ "format": "{text} ", "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 ]", + "exec-if": "[ $(checkupdates | wc -l) -gt 100 ]", "on-click": "wezterm start -- zsh -c 'yay; pkill -SIGRTMIN+8 waybar'", "signal": 8, "tooltip-format": "{text} updates available",