diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-10-30 04:29:56 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-10-30 04:39:37 -0400 |
commit | f0aa0078502176ae4d2a527c4947144f4471b6f8 (patch) | |
tree | f3800f040abc3e57be689e43105ef3bba9b6a425 /bin | |
parent | 0287a72f745f0a6b51286f3236505199dd69067f (diff) | |
download | conf-f0aa0078502176ae4d2a527c4947144f4471b6f8.tar.gz conf-f0aa0078502176ae4d2a527c4947144f4471b6f8.zip |
put the weather data in .cache
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/status | 2 | ||||
-rwxr-xr-x | bin/update-weather | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); } |