mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-06-15 20:25:13 +02:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user