From 080a77c5e321b555049db7c0013c9fe50fb4bf07 Mon Sep 17 00:00:00 2001 From: nocode Date: Sat, 4 Jul 2026 12:57:01 +0200 Subject: [PATCH] feat(releng): add fws-updates-check script for update notifications Add a new shell script that checks for available package updates using checkupdates from pacman-contrib. The script outputs the number of available updates with an icon for use in waybar/polybar status bars. Silent output when no updates are available allows the bar module to hide. --- configs/releng/airootfs/usr/local/bin/fws-updates-check | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 configs/releng/airootfs/usr/local/bin/fws-updates-check 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