update waybar to catppuccin macchiato

This commit is contained in:
2025-03-15 14:29:31 -07:00
parent 4591a5d65c
commit c326a20a99
12 changed files with 967 additions and 26 deletions

16
scripts/wttr.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
for _ in {1..5}; do
text="$(curl -s "https://wttr.in/$1?format=1" | sed -E "s/\s+/ /g")"
if [[ "$?" = 0 ]]; then
# text="$(echo "$text" | awk '{print $2}')"
tooltip=$(curl -s "https://wttr.in/$1?format=4")
if [ "$?" = 0 ]; then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"