summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-10-30 04:29:56 -0400
committerJesse Luehrs <doy@tozt.net>2017-10-30 04:39:37 -0400
commitf0aa0078502176ae4d2a527c4947144f4471b6f8 (patch)
treef3800f040abc3e57be689e43105ef3bba9b6a425 /bin
parent0287a72f745f0a6b51286f3236505199dd69067f (diff)
downloadconf-f0aa0078502176ae4d2a527c4947144f4471b6f8.tar.gz
conf-f0aa0078502176ae4d2a527c4947144f4471b6f8.zip
put the weather data in .cache
Diffstat (limited to 'bin')
-rwxr-xr-xbin/status2
-rwxr-xr-xbin/update-weather2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/status b/bin/status
index 2f72eb1..062455d 100755
--- a/bin/status
+++ b/bin/status
@@ -119,7 +119,7 @@ sub handle_i3status {
};
}
- my $weather_file = "$ENV{HOME}/.weather";
+ my $weather_file = "$ENV{HOME}/.cache/weather";
if (-r $weather_file && -f $weather_file) {
my $weather = slurp($weather_file);
chomp($weather);
diff --git a/bin/update-weather b/bin/update-weather
index e5dd5a2..e3a6bc3 100755
--- a/bin/update-weather
+++ b/bin/update-weather
@@ -5,5 +5,5 @@ use warnings;
use Path::Class;
if (my $weather = `weather`) {
- file("$ENV{HOME}/.weather")->openw->print($weather);
+ file("$ENV{HOME}/.cache/weather")->openw->print($weather);
}