Checks for pacman
updates every hour, and echoes the update count to /var/local/countupdates/count
.
Polybar can then read this file and display the results.
pacman-contrib
- /usr/local/lib/systemd/system/checkupdates.service
- /usr/local/lib/systemd/system/checkupdates.timer
- ~/.config/polybar/scripts/count-updates.sh
- ~/.config/polybar/config
- /etc/pacman.d/hooks/countupdates.hook
Great work, but a little over-engineered.
polybar will run it by itself or throw it on a cron. No need for systemd timers