feat(waybar-config): pacman module: do not ping to archlinux server,

just run cheupdates, it will return false if no connection is available
This commit is contained in:
2025-09-06 18:45:42 +02:00
parent e9074cd643
commit 6e8cbffb2e

View File

@@ -19,7 +19,7 @@
"format": "{text} ", "format": "{text} ",
"interval": 3600, // every hour "interval": 3600, // every hour
"exec": "checkupdates | wc -l", // # of updates "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'", "on-click": "wezterm start -- zsh -c 'yay; pkill -SIGRTMIN+8 waybar'",
"signal": 8, "signal": 8,
"tooltip-format": "{text} updates available", "tooltip-format": "{text} updates available",