diff options
Diffstat (limited to 'wrocwttr')
| -rwxr-xr-x | wrocwttr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wrocwttr b/wrocwttr new file mode 100755 index 0000000..b1bb3af --- /dev/null +++ b/wrocwttr @@ -0,0 +1,10 @@ +#!/bin/sh + +export DISPLAY=:0.0 +export HOME=/home/filipek + +temp=$(curl wttr.in/Wrocław?format=1 | awk '{print $2}') +file="$HOME/.cache/weather/wroc.txt" + +echo "$temp" > "$file" +notify-send "Temperature updated." |
