mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
Major Update: created v5 (switching from x11 to wayland). Changed polybar to waybar in this commit.
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
weather=$(curl -s "https://wttr.in/?format=%C")
|
||||
temp=$(curl -s "https://wttr.in/?format=%t")
|
||||
feels_like_time=$(curl -s "https://wttr.in/?format=%f")
|
||||
|
||||
if [[ $weather == *"Sunny"* ]]; then icon=""
|
||||
elif [[ $weather == *"Clear"* ]]; then icon=""
|
||||
|
||||
elif [[ $weather == *"Partly cloudy"* ]]; then icon=""
|
||||
elif [[ $weather == *"Cloudy"* ]]; then icon=""
|
||||
|
||||
elif [[ $weather == *"Very cloudy"* ]]; then icon=""
|
||||
elif [[ $weather == *"Overcast"* ]]; then icon=""
|
||||
elif [[ $weather == *"Fog"* ]]; then icon=""
|
||||
elif [[ $weather == *"Mist"* ]]; then icon=""
|
||||
|
||||
elif [[ $weather == *"Light rain"* ]]; then icon=""
|
||||
elif [[ $weather == *"Patchy rain"* ]]; then icon=""
|
||||
elif [[ $weather == *"Light drizzle"* ]]; then icon=""
|
||||
elif [[ $weather == *"Showers"* ]]; then icon=""
|
||||
elif [[ $weather == *"Rain"* ]]; then icon=""
|
||||
|
||||
elif [[ $weather == *"Light snow"* ]]; then icon=""
|
||||
elif [[ $weather == *"Patchy snow"* ]]; then icon=""
|
||||
elif [[ $weather == *"Snow"* ]]; then icon=""
|
||||
|
||||
elif [[ $weather == *"Thunder"* ]]; then icon=""
|
||||
|
||||
else icon=""
|
||||
fi
|
||||
|
||||
echo "$icon <span color='#dedede'>$temp ($feels_like_time)</span>"
|
||||
Reference in New Issue
Block a user