diff options
Diffstat (limited to 'config')
| -rwxr-xr-x | config/hypr/UserScripts/Weather.py | 2 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/Weather.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config/hypr/UserScripts/Weather.py b/config/hypr/UserScripts/Weather.py index a2ad98b5..b9efe4e4 100755 --- a/config/hypr/UserScripts/Weather.py +++ b/config/hypr/UserScripts/Weather.py @@ -138,7 +138,7 @@ simple_weather = ( ) try: - with open(os.path.expanduser("$HOME/.cache/.weather_cache"), "w") as file: + with open(os.path.expanduser("~/.cache/.weather_cache"), "w") as file: file.write(simple_weather) except Exception as e: print(f"Error writing to cache: {e}") diff --git a/config/hypr/UserScripts/Weather.sh b/config/hypr/UserScripts/Weather.sh index 9bdaff4a..f5bf9fa9 100755 --- a/config/hypr/UserScripts/Weather.sh +++ b/config/hypr/UserScripts/Weather.sh @@ -4,7 +4,7 @@ # Remember to add city city= -cachedir="$HOME/.cache/rbn" +cachedir="~/.cache/rbn" cachefile=${0##*/}-$1 if [ ! -d $cachedir ]; then @@ -84,4 +84,4 @@ echo -e "{\"text\":\""$temperature $condition"\", \"alt\":\""${weather[0]}"\", \ cached_weather=" $temperature \n$condition ${weather[1]}" -echo -e $cached_weather > "$HOME/.cache/.weather_cache"
\ No newline at end of file +echo -e $cached_weather > "~/.cache/.weather_cache"
\ No newline at end of file |
