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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user