Files
nix-config/.config/i3/scripts/miei/meteo.sh

10 lines
190 B
Bash
Executable File

#!/usr/bin/env bash
meteo=$(curl wttr.in/Sedriano?format=1| xargs echo)
first="${meteo%% *}"
if [ "$meteo" == "" ] || [ "$first" == "Unknown" ]; then
echo " Off"
else
echo $meteo
fi