This commit is contained in:
2026-01-05 10:57:27 +04:00
parent 842e1c94f2
commit cc03ff37c4
25 changed files with 373 additions and 114 deletions

10
.scripts/weather.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/env bash
colors_path=$HOME/.cache/wal/colors.sh
WEATHER=$(curl --silent v2d.wttr.in/Samara | grep "Weather:")
TEMP=$(echo $WEATHER | tr "," "\n" | grep "°C")
if [ -f "$colors_path" ]; then
source $colors_path
[[ ! -z "$TEMP" ]] && echo "^b$color1^^c$color0^  ^d^^b$color8^^c$color0^$TEMP ^d^"
fi