summaryrefslogtreecommitdiff
path: root/weather-widget
diff options
context:
space:
mode:
authorPavel Makhov <pavel.makhov@savoirfairelinux.com>2017-03-14 21:56:46 -0400
committerPavel Makhov <pavel.makhov@savoirfairelinux.com>2017-03-14 21:56:46 -0400
commit8755d9eddefb0b5ce42d1fddc0ed87a743d91dd0 (patch)
treeb006d9c188238a18f7878e6bbe8198c0293605ce /weather-widget
parent316be63c58ce7b1f1c07b4d8c1bbfdac97e476ca (diff)
parentd2632b5c753b93856dc2e1adb3f06eebea86e2ec (diff)
Merge branch 'master' of https://github.com/streetturtle/AwesomeWM
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)