From 9da7cc81055a841c464f2b3ea2036251d8108146 Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Thu, 5 Nov 2026 17:03:53 +0100 Subject: [PATCH] xmobar: show forecast frost/snow/heat probabilities as icons The bar's forecast line now uses Nerd Font weather glyphs instead of the words, like the rain drop; the week notification keeps the words. --- .config/xmobar/ens_brief.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/xmobar/ens_brief.sh b/.config/xmobar/ens_brief.sh index cd1423f..7dd7a45 100755 --- a/.config/xmobar/ens_brief.sh +++ b/.config/xmobar/ens_brief.sh @@ -47,9 +47,11 @@ if [ "$1" = "week" ]; then fi pick 1 2>/dev/null || exit 0 -read -r day temps rain <<< "${line#*: }" +read -r day temps rain extra <<< "${line#*: }" +# Probabilities as nf-weather icons: frost snowflake_cold, snow, heat hot +extra=${extra//frost /$'\xee\x8d\xaf' } extra=${extra//snow /$'\xee\x8c\x9a' } extra=${extra//heat /$'\xee\x8d\xab' } label="" [[ $model != "${MODELS[0]}" ]] && label="${LABEL[$model]:-$model} " stale="" [[ ${line%%: *} == *STALE* ]] && stale=" !" -echo "$label$day ${temps%C} "$''" $rain$stale" +echo "$label$day ${temps%C} "$''" $rain${extra:+ $extra}$stale"