From d2632b5c753b93856dc2e1adb3f06eebea86e2ec Mon Sep 17 00:00:00 2001 From: streetturtle Date: Tue, 14 Mar 2017 21:53:18 -0400 Subject: More details to popup message --- weather-widget/weather.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua index 62b297e..d6e15d4 100644 --- a/weather-widget/weather.lua +++ b/weather-widget/weather.lua @@ -72,11 +72,17 @@ weather_timer:start() weather_timer:emit_signal("timeout") weather_widget:connect_signal("mouse::enter", function() - naughty.notify{ + notification = naughty.notify{ icon = path_to_icons .. icon_map[resp.weather[1].icon], icon_size=20, - text = 'Humidity: ' .. resp.main.humidity .. '%
Temperature: ' .. to_celcius(resp.main.temp), - timeout = 5, hover_timeout = 0.5, + text = + '' .. resp.weather[1].main .. ' (' .. resp.weather[1].description .. ')
' .. + 'Humidity: ' .. resp.main.humidity .. '%
' .. + 'Temperature: ' .. to_celcius(resp.main.temp) .. '
' .. + 'Pressure: ' .. resp.main.pressure .. 'hPa
' .. + 'Clouds: ' .. resp.clouds.all .. '%
' .. + 'Wind: ' .. resp.wind.speed .. 'm/s', + timeout = 5, hover_timeout = 10, width = 200, } end) -- cgit v1.2.3