diff --git a/configs/releng/airootfs/usr/local/bin/fws-updates-check b/configs/releng/airootfs/usr/local/bin/fws-updates-check new file mode 100755 index 0000000..860430a --- /dev/null +++ b/configs/releng/airootfs/usr/local/bin/fws-updates-check @@ -0,0 +1,8 @@ +#!/bin/sh +# FWS — indicateur « mises à jour disponibles » pour waybar/polybar. +# checkupdates (pacman-contrib) : lit les dépôts SANS toucher la base pacman. +# Sortie vide = rien à faire → le module de la barre se cache. +command -v checkupdates >/dev/null 2>&1 || exit 0 +n="$(checkupdates 2>/dev/null | wc -l)" +[ "$n" -gt 0 ] && printf '󰚰 %s\n' "$n" +exit 0