exequtic / apdatifier

KDE Plasma widget that tracks updates for ArchLinux, Plasma Widgets, and Flatpak, providing notifications for new ones
https://store.kde.org/p/2135796
MIT License
90 stars 7 forks source link

Custom icon matching ideas #8

Closed luisbocanegra closed 7 months ago

luisbocanegra commented 8 months ago

I would like to have icons for all the packages :) but find the icon matching very limited :( Could it be possible/feasible to match package custom icons with rules in the following order?

  1. Per repository (core, extra, aur...)
  2. Per package group (plasma, gnome, kf6...)
  3. Per pattern e.g. python-. (python modules, haskell, .-git...)
exequtic commented 8 months ago

Good idea! I'll take note of that.

exequtic commented 7 months ago

How about this? In this order:

1) First set icons for repositories 2) Set icons for groups 3) Set icons based on name matching 4) Set individual icon with exact name match (For packages not covered by previous rules or to overwrite the previous rules)

Each overrides the previous icon. For example, 'krunner5' in the AUR repository and in the plasma group - will use the second icon. The same goes for octopi.

curl -fsSL https://raw.githubusercontent.com/exequtic/apdatifier/main/package/contents/tools/tools.sh | sh -s install

Screenshot_20240331_162131

luisbocanegra commented 7 months ago

Thank you, it works as expected. Very well done!