summaryrefslogtreecommitdiff
path: root/weather-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2017-03-14 21:53:18 -0400
committerGitHub <noreply@github.com>2017-03-14 21:53:18 -0400
commitd2632b5c753b93856dc2e1adb3f06eebea86e2ec (patch)
tree19612f822a9904f2de1bdf26d529d8106959c185 /weather-widget
parent89a218f43caa745e44372657ca66ad773524dfb5 (diff)
More details to popup message
Diffstat (limited to 'weather-widget')
-rw-r--r--weather-widget/weather.lua12
1 files 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 = '<b>Humidity:</b> ' .. resp.main.humidity .. '%<br><b>Temperature: </b>' .. to_celcius(resp.main.temp),
- timeout = 5, hover_timeout = 0.5,
+ text =
+ '<big>' .. resp.weather[1].main .. ' (' .. resp.weather[1].description .. ')</big><br>' ..
+ '<b>Humidity:</b> ' .. resp.main.humidity .. '%<br>' ..
+ '<b>Temperature: </b>' .. to_celcius(resp.main.temp) .. '<br>' ..
+ '<b>Pressure: </b>' .. resp.main.pressure .. 'hPa<br>' ..
+ '<b>Clouds: </b>' .. resp.clouds.all .. '%<br>' ..
+ '<b>Wind: </b>' .. resp.wind.speed .. 'm/s',
+ timeout = 5, hover_timeout = 10,
width = 200,
}
end)