Split up Librewolf CSS to make it more readable

This commit is contained in:
Jimbo 2024-11-13 03:43:51 -05:00
parent ffb1b6d541
commit e0d8fd1473
17 changed files with 303 additions and 359 deletions

View file

@ -217,20 +217,8 @@
condition=$(echo "$fetch" | sed -n '3p')
location=$(echo "$fetch" | sed -n '4p')
# Map weather conditions to emojis
case "$condition" in
"Clear"|"Sunny") emoji="";;
"Cloudy"|"Partly cloudy"|"Overcast") emoji="";;
"Rain") emoji="🌧";;
"Drizzle") emoji="🌦";;
"Thunderstorm") emoji="";;
"Snow") emoji="";;
"Mist"|"Fog"|"Haze") emoji="🌫";;
*) emoji="🌍";; # Default emoji for unknown
esac
# Display weather emoji and temperature
echo {\"text\":\"$emoji $temp\",\"tooltip\":\"$location: $condition\"}
echo {\"text\":\" $temp\",\"tooltip\":\"$location: $condition\"}
'';
format = "<span font_size='11pt'>{}</span>";
return-type = "json";