Skip to content

Commit

Permalink
arch_updates: add a note about using alpm-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
lasers committed Nov 2, 2023
1 parent e898f2f commit df73d90
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions py3status/modules/arch_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@
paru: feature packed AUR helper
pikaur: pacman wrapper and AUR helper written in python
Note:
For best results, use alpm-hooks, https://archlinux.org/pacman/alpm-hooks.5.html,
along with longer `cache_timeout = 3600` config to refresh this module once every
hour and to refresh based on the packages and/or files being modified too.
# refresh all instances of arch_updates module
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Depends = py3status
When = PostTransaction
Exec = /usr/bin/py3-cmd refresh arch_updates
@author Iain Tatch <[email protected]>
@license BSD
Expand Down

0 comments on commit df73d90

Please sign in to comment.