shell icon indicating copy to clipboard operation
shell copied to clipboard

[FEATURE] Available package updates number on the taskbar

Open Karlito05 opened this issue 6 months ago • 3 comments

What would you like to be added?

A small number on the taskbar that would indicate how many available updates can be installed. Can be toggleable in the settings.

How will it help?

I believe this would help many users to keep up with the fast paced updates on rolling release distros like arch

Extra info

No response

Karlito05 avatar May 28 '26 14:05 Karlito05

There's actually a package on AUR called checkupdatify that fits this use case quite well. It's a small collection of scripts that check for pending updates on Arch and send desktop notifications via notify-send.

Out of the box it only checks official repos, but with a small modification to the checkupdatify_checker script you can also pull in AUR updates using yay -Qua. I've been running a modified version of it myself — here's what it does:

  • Checks both official repos and AUR for pending updates
  • Smart dedup: compares the current update list against the previous run's snapshot, and only sends a notification if something actually changed — so you won't get spammed with the same notification every hour
  • The notification body shows only the newly appeared packages since the last check (via comm -23 diff), with [official] and [AUR] sections
  • Writes the update lists to /tmp/ so other tools (e.g. Waybar) can consume them too

Since Caelestia already handles notify-send natively, the notifications show up in the notification center without any extra integration needed.

The setup is just:

  1. Install checkupdatify from AUR
  2. Modify checkupdatify_checker to also call yay -Qua and add the dedup logic
  3. Enable the systemd timer — done

This way the feature doesn't need to be baked into the shell at all. That said, if there's interest in a native taskbar badge showing the update count, the /tmp/checkupdatify_pending_* files this script writes could be polled directly from QML.

Here's my modified version of the script if you'd like to take a look: https://gist.github.com/Mestane/060c5449b43aa59a60b1f179d421f3e5

Screenshots

Image Image

Mestane avatar May 29 '26 13:05 Mestane

I would recommend using the aur package arch-update

dark3txr avatar May 30 '26 11:05 dark3txr

You might as well check out shelly, which does the same as a notification

HEIN390 avatar Jun 21 '26 14:06 HEIN390