dots-hyprland icon indicating copy to clipboard operation
dots-hyprland copied to clipboard

feat(bar): Display a numberr of system package updates

Open difrost opened this issue 2 months ago • 4 comments

Describe your changes

With this PR one can enable a display of available updates to system packages (currently supported on Arch and Fedora Linux). The counter is refreshed within a customizable interval (specified in minutes via Settings) - manual refresh is triggered on-click. Hover over the counter will show last fetch time.

image image

Note: While I'm an engineer/developer with long experience that's my first attempt on QML/QT/QS and this entire PR has been done in good old style by just looking at others code and - mostly - ignoring docs.

difrost avatar Sep 30 '25 16:09 difrost

Nice! The settings should go in bar config imo

0blivi0nis avatar Sep 30 '25 22:09 0blivi0nis

I've turned into a separate System section to use it further for all outside-of-shell, system related controls. The placement is also not the best imho - tho I can say same for many bar items.

All in all this is more of a beta version. I would like to add a script that will actually allow quick update via click on the counter (instead of fetching the updates). For that I need to resurrect my old laptop running Fedora. Plus we should add a better runtime awareness - exactly what distro we run on, what is the AUR helper if running on Arch... That will help with further OS integrations.

difrost avatar Oct 01 '25 10:10 difrost

Plus we should add a better runtime awareness - exactly what distro we run on, what is the AUR helper if running on Arch... That will help with further OS integrations.

I guess you may use something like this:

https://github.com/end-4/dots-hyprland/blob/f87e6e2b6ae2f22ee3d9ade6525a213c80aeeb7c/diagnose#L35-L45

clsty avatar Oct 01 '25 18:10 clsty

This is yet another useless piece of information that adds no value to productivity thrown at a random place, so I'm really hesitant...

Maybe it's time for the window title on the left side to go? Since it was also a filler I added because I didn't know what to put there

end-4 avatar Oct 03 '25 14:10 end-4