mirror of
https://github.com/StepanovPlaton/dotfiles.git
synced 2026-04-03 20:30:46 +04:00
050125
This commit is contained in:
10
.scripts/weather.sh
Executable file
10
.scripts/weather.sh
Executable 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
|
||||
Reference in New Issue
Block a user