From f3f3ec75eff2b90cb5730684d2a84d6df3362bff Mon Sep 17 00:00:00 2001 From: lasers Date: Thu, 2 Nov 2023 04:04:39 -0500 Subject: [PATCH] arch_updates: longer cache_timeout, a note about including a hook --- py3status/modules/arch_updates.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/py3status/modules/arch_updates.py b/py3status/modules/arch_updates.py index ca77af3542..6489fdff01 100644 --- a/py3status/modules/arch_updates.py +++ b/py3status/modules/arch_updates.py @@ -2,7 +2,7 @@ Display number of pending updates for Arch Linux. Configuration parameters: - cache_timeout: refresh interval for this module (default 600) + cache_timeout: refresh interval for this module (default 3600) format: display format for this module, otherwise auto (default None) hide_if_zero: don't show on bar if True (default False) @@ -19,6 +19,10 @@ paru: feature packed AUR helper pikaur: pacman wrapper and AUR helper written in python +Note: + py3status for Arch-based distributions should include an alpm hook + to refresh this module after packages and/or files being modified. + @author Iain Tatch @license BSD @@ -36,7 +40,7 @@ class Py3status: """ """ # available configuration parameters - cache_timeout = 600 + cache_timeout = 3600 format = None hide_if_zero = False