We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5e81de commit 8725950Copy full SHA for 8725950
weather-api-widget/weather.lua
@@ -619,6 +619,18 @@ local function worker(user_args)
619
end
620
end)))
621
622
+ weather_widget:connect_signal("mouse::enter", function()
623
+ weather_widget:set_bg(beautiful.bg_focus)
624
+ weather_popup:move_next_to(mouse.current_widget_geometry)
625
+ end)
626
+
627
+ weather_widget:connect_signal("mouse::leave", function()
628
+ if weather_popup.visible then
629
+ weather_widget:set_bg('#00000000')
630
+ weather_popup.visible = not weather_popup.visible
631
+ end
632
633
634
watch(
635
string.format(GET_FORECAST_CMD, weather_api),
636
timeout, -- API limit is 1k req/day; day has 1440 min; every 2 min is good
0 commit comments