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.
This commit is contained in:
3 files changed
+4
-2
No files matched your search
@@ -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 "<fn=1>${ICON[thermometer]}</fn> 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]} <fc=$color>$temp</fc>°C"
|
||||
echo "<fn=1>${ICON[$icon]}</fn> <fc=$color>$temp</fc>°C"
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user