summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Wittmaack <rainer@wittmaack.xyz>2022-07-07 08:32:34 -0500
committerGitHub <noreply@github.com>2022-07-07 13:32:34 +0000
commitf1e68ed533d4cd31996f9cfb0efc3be4ec4f3ff1 (patch)
tree24eefa859fc0ca6c2a1361d595258fe0c5921b30
parentc20acc474f7054f65c6ee410c0e26dcbcfc89927 (diff)
downloadeibhear-f1e68ed533d4cd31996f9cfb0efc3be4ec4f3ff1.tar.gz
eibhear-f1e68ed533d4cd31996f9cfb0efc3be4ec4f3ff1.tar.zst
eibhear-f1e68ed533d4cd31996f9cfb0efc3be4ec4f3ff1.zip
move weatherreport to $XDG_CACHE_HOME (#1140)
-rwxr-xr-x.local/bin/statusbar/sb-forecast2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast
index 7b8416e..45584c5 100755
--- a/.local/bin/statusbar/sb-forecast
+++ b/.local/bin/statusbar/sb-forecast
@@ -6,7 +6,7 @@
# If we have internet, get a weather report from wttr.in and store it locally.
# You could set up a shell alias to view the full file in a pager in the
# terminal if desired. This function will only be run once a day when needed.
-weatherreport="${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport"
+weatherreport="${XDG_CACHE_HOME:-$HOME/.cache}/weatherreport"
getforecast() { curl -sf "wttr.in/$LOCATION" > "$weatherreport" || exit 1 ;}
# Some very particular and terse stream manipulation. We get the maximum