Compare commits

..

2 commits

Author SHA1 Message Date
Adam Gausmann
af023a6fc2 add on-click event to refresh the update counter 2025-06-04 11:55:37 -05:00
Adam Gausmann
b301d9503e fix package count 2025-06-04 11:54:00 -05:00
2 changed files with 3 additions and 2 deletions

View file

@ -45,6 +45,7 @@
"return-type": "json",
// every 7 hours
"interval": 25200,
"on-click": "",
},
{% for iface in host.wireless %}

View file

@ -3,9 +3,9 @@
set -e
info="$(xbps-install -Mun)"
[ -z $info ] && exit
PKG_COUNT="$(echo "$info" | wc -l)"
[ $PKG_COUNT -eq 0 ] && exit
PKG_COUNT="$(echo -n "$info" | wc -l)"
DL_SIZE="$(echo "$info" | awk '{s+=$6}END{print s}' | numfmt --to=iec-i)B"