summaryrefslogtreecommitdiff
path: root/wrocwttr
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-11-12 09:54:05 +0100
committerfilip <“filip.rabiega@gmail.com”>2025-11-12 09:54:05 +0100
commita5a501116087587e043d9c682de28f5297059c55 (patch)
treebb9b53aee71e7f8febe457e595e5ef447d2fc464 /wrocwttr
parent563c858d140b2854bbb130caacb44cfed81ad837 (diff)
downloadchadscripts-a5a501116087587e043d9c682de28f5297059c55.tar.gz
chadscripts-a5a501116087587e043d9c682de28f5297059c55.tar.bz2
chadscripts-a5a501116087587e043d9c682de28f5297059c55.zip
no message
Diffstat (limited to 'wrocwttr')
-rwxr-xr-xwrocwttr10
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."