Keep the configured threshold in the pending file

A threshold argument is a one-off override for the notification, so status bars
keep using THRESHOLD from the config.
This commit is contained in:
Daniele Fucini
2026-10-17 11:06:46 +02:00
parent da8505624f
commit ffb15c0954
2 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ systemctl --user enable --now update-notify.path
update-notify [threshold]
```
`threshold` is the minimum number of updates (repo + AUR) before update counts are shown. It overrides the `THRESHOLD` setting below.
`threshold` is the minimum number of updates (repo + AUR) before update counts are shown. It overrides the `THRESHOLD` setting below for that run's notification only; the pending file keeps the configured value.
## Configuration
@@ -97,7 +97,7 @@ The content of the last notification is stored in `$XDG_STATE_HOME/update-notify
Each run also writes the pending updates to `$XDG_STATE_HOME/update-notify/pending`, whether or not the threshold is reached, for status bars such as xmobar to read:
```
threshold 30
threshold <THRESHOLD from the config, not the argument>
repo <pkg> <newver>
aur <pkg> <newver>
kernel <custom-pkg> <stock-ver>