diff options
author | Pavel Makhov <pavel.makhov@savoirfairelinux.com> | 2017-03-14 21:56:46 -0400 |
---|---|---|
committer | Pavel Makhov <pavel.makhov@savoirfairelinux.com> | 2017-03-14 21:56:46 -0400 |
commit | 8755d9eddefb0b5ce42d1fddc0ed87a743d91dd0 (patch) | |
tree | b006d9c188238a18f7878e6bbe8198c0293605ce | |
parent | 316be63c58ce7b1f1c07b4d8c1bbfdac97e476ca (diff) | |
parent | d2632b5c753b93856dc2e1adb3f06eebea86e2ec (diff) |
Merge branch 'master' of https://github.com/streetturtle/AwesomeWM
-rw-r--r-- | weather-widget/weather.lua | 12 |
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) |