diff --git a/config/awesome/evil/coronavirus.lua b/config/awesome/evil/coronavirus.lua index c48e542..a0ff412 100644 --- a/config/awesome/evil/coronavirus.lua +++ b/config/awesome/evil/coronavirus.lua @@ -9,8 +9,8 @@ local helpers = require("helpers") local naughty = require("naughty") local update_interval = 60 * 60 * 12 -- 12 hours -local country = user.coronavirus_country or "usa" -local temp_file = "/tmp/awesomewm-evil-coronavirus" +local country = user.coronavirus_country or "germany" +local temp_file = "/tmp/awesomewm-evil-coronavirus-"..country local coronavirus_script = [[ sh -c ' diff --git a/config/awesome/evil/weather.lua b/config/awesome/evil/weather.lua index c3a184a..765c9a3 100644 --- a/config/awesome/evil/weather.lua +++ b/config/awesome/evil/weather.lua @@ -12,21 +12,21 @@ local city_id = user.openweathermap_city_id local units = user.weather_units -- Don't update too often, because your requests might get blocked for 24 hours local update_interval = 1200 -local temp_file = "/tmp/awesomewm-evil-weather" +local temp_file = "/tmp/awesomewm-evil-weather-"..city_id.."-"..units local weather_details_script = [[ bash -c ' KEY="]]..key..[[" CITY="]]..city_id..[[" UNITS="]]..units..[[" - + weather=$(curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID=$KEY&id=$CITY&units=$UNITS") - + if [ ! -z "$weather" ]; then weather_temp=$(echo "$weather" | jq ".main.temp" | cut -d "." -f 1) weather_icon=$(echo "$weather" | jq -r ".weather[].icon" | head -1) weather_description=$(echo "$weather" | jq -r ".weather[].description" | head -1) - + echo "$weather_icon" "$weather_description"@@"$weather_temp" else echo "..."