Add weather report to the status bar

This commit is contained in:
Ohad Livne 2025-06-04 22:44:39 +03:00
parent a0af4c6e2f
commit 74170330cd
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
4 changed files with 11 additions and 1 deletions

View file

@ -27,4 +27,6 @@ elif [ "${battery_state}" = "Discharging" ]; then
battery_symbol="🔋"
fi
echo 📆${today} ⏲${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%
weather=$(cat /tmp/weather-report.txt)
echo ${weather} 📆${today} ⏲${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%

4
.local/bin/update-weather Executable file
View file

@ -0,0 +1,4 @@
#! /usr/bin/sh
# Documentation available in https://github.com/chubin/wttr.in
curl -Ss 'https://wttr.in/?0&m&q&T&format=3' > /tmp/weather-report.txt