Split up Librewolf CSS to make it more readable
This commit is contained in:
parent
ffb1b6d541
commit
e0d8fd1473
17 changed files with 303 additions and 359 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue