From 9896d9bb215f4d0e8dd2e7c25aa4db80c3a069c2 Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Fri, 13 Nov 2026 18:39:53 +0100 Subject: [PATCH] xmobar: draw the weather icon larger Add a 13 pt additional font and use it for the weather icon only, so the rest of the bar and its height are unchanged. --- .config/xmobar/weather.sh | 4 ++-- .config/xmobar/xmobarrc_hdmi | 1 + .config/xmobar/xmobarrc_laptop | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/xmobar/weather.sh b/.config/xmobar/weather.sh index 4ea17ac..eed97b6 100755 --- a/.config/xmobar/weather.sh +++ b/.config/xmobar/weather.sh @@ -18,7 +18,7 @@ declare -A ICON=( report=$(curl -sf --max-time 20 https://tgftp.nws.noaa.gov/data/observations/metar/decoded/"$STATION".TXT) temp=$(sed -n 's/^Temperature: .*(\([-0-9.]*\) C).*/\1/p' <<< "$report") if [[ -z $temp ]]; then - if [[ $1 == notify ]]; then notify-send "Weather" "No report from $STATION"; else echo "${ICON[thermometer]} N/A"; fi + if [[ $1 == notify ]]; then notify-send "Weather" "No report from $STATION"; else echo "${ICON[thermometer]} N/A"; fi exit 0 fi @@ -78,4 +78,4 @@ if [[ $1 == notify ]]; then notify-send "${ICON[$icon]} Weather" "${desc^}, $temp°C" exit 0 fi -echo "${ICON[$icon]} $temp°C" +echo "${ICON[$icon]} $temp°C" diff --git a/.config/xmobar/xmobarrc_hdmi b/.config/xmobar/xmobarrc_hdmi index 0b08181..bb7dc17 100644 --- a/.config/xmobar/xmobarrc_hdmi +++ b/.config/xmobar/xmobarrc_hdmi @@ -1,6 +1,7 @@ Config { overrideRedirect = True , lowerOnStart = True , font = "Jetbrains Mono Nerd Font Bold 10" + , additionalFonts = ["Jetbrains Mono Nerd Font Bold 13"] , bgColor = "#24283b" , fgColor = "#737aa2" , position = TopH 24 diff --git a/.config/xmobar/xmobarrc_laptop b/.config/xmobar/xmobarrc_laptop index 98aa190..40a22b3 100644 --- a/.config/xmobar/xmobarrc_laptop +++ b/.config/xmobar/xmobarrc_laptop @@ -1,6 +1,7 @@ Config { overrideRedirect = True , lowerOnStart = True , font = "Jetbrains Mono Nerd Font Bold 10" + , additionalFonts = ["Jetbrains Mono Nerd Font Bold 13"] , bgColor = "#24283b" , fgColor = "#737aa2" , position = TopH 24