feat(fastfetch): add weekly user count + bazaar installs (#1209)

This commit is contained in:
renner 2025-10-30 22:30:53 +01:00 committed by GitHub
parent 28adc2ecb2
commit 75064bc187
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View file

@ -62,4 +62,12 @@ echo "IMAGE_VERSION=\"${VERSION}\"" >> /usr/lib/os-release
# Fix issues caused by ID no longer being fedora
sed -i "s|^EFIDIR=.*|EFIDIR=\"fedora\"|" /usr/sbin/grub2-switch-to-blscfg
# Weekly user count for fastfetch
ghcurl https://raw.githubusercontent.com/ublue-os/countme/main/badge-endpoints/aurora.json | jq -r ".message" > /usr/share/ublue-os/fastfetch-user-count
# bazaar weekly downloads used for fastfetch
curl -X 'GET' \
'https://flathub.org/api/v2/stats/io.github.kolunmi.Bazaar?all=false&days=1' \
-H 'accept: application/json' | jq -r ".installs_last_7_days" | numfmt --to=si --round=nearest > /usr/share/ublue-os/bazaar-install-count
echo "::endgroup::"

View file

@ -43,6 +43,21 @@
"shell": "/bin/bash"
},
"break",
{
"type": "command",
"key": "",
"keyColor": "#9b59b6",
"text": "echo Stargazers: $(cat /usr/share/ublue-os/fastfetch-user-count)",
"shell": "/bin/bash"
},
{
"type": "command",
"key": "",
"keyColor": "#ff5c00",
"text": "echo Bazaar Installs: $(cat /usr/share/ublue-os/bazaar-install-count)",
"shell": "/bin/bash"
},
"break",
{
"type": "host",
"key": "󰾰"