Improved popups

master
Mark 2022-11-05 11:40:42 -07:00
parent 4b2e2c8815
commit b7a7798611
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
5 changed files with 7 additions and 9 deletions

View File

@ -75,7 +75,7 @@ return function(s)
bottom = beautiful.dpi(10), bottom = beautiful.dpi(10),
widget = wibox.container.margin widget = wibox.container.margin
}, },
bg ="#000000CC", bg ="#000000FF",
widget = wibox.container.background, widget = wibox.container.background,
ontop = true, ontop = true,
visible = true, visible = true,

View File

@ -53,12 +53,10 @@ widget.widget = wibox.widget {
widget.widget:connect_signal("mouse::enter", function(result) widget.widget:connect_signal("mouse::enter", function(result)
widget.widget.bg = beautiful.color.bar.hover_bg widget.widget.bg = beautiful.color.bar.hover_bg
awesome.emit_signal("module::backlight:popup_show_stay")
end) end)
widget.widget:connect_signal("mouse::leave", function(result) widget.widget:connect_signal("mouse::leave", function(result)
widget.widget.bg = beautiful.color.transparent widget.widget.bg = beautiful.color.transparent
awesome.emit_signal("module::backlight:popup_show")
end) end)
widget.widget:connect_signal("button::press", widget.widget:connect_signal("button::press",
@ -70,6 +68,8 @@ widget.widget:connect_signal("button::press",
elseif (button == 5) then elseif (button == 5) then
backlight.backlight_down(config.backlight.scroll_step) backlight.backlight_down(config.backlight.scroll_step)
end end
awesome.emit_signal("module::backlight:popup_show_stay")
end end
) )

View File

@ -4,9 +4,9 @@ shadow-opacity = 0;
// Enable fading initially. // Enable fading initially.
// Finer config is in fade-exclude. // Finer config is in fade-exclude.
fading = true fading = true
fade-in-step = 0.04; fade-in-step = 0.1;
fade-out-step = 0.03; fade-out-step = 0.03;
fade-delta = 10; fade-delta = 5;
fade-exclude = [ fade-exclude = [
"class_g != 'awesome'" "class_g != 'awesome'"

View File

@ -75,7 +75,7 @@ return function(s)
bottom = beautiful.dpi(10), bottom = beautiful.dpi(10),
widget = wibox.container.margin widget = wibox.container.margin
}, },
bg ="#000000CC", bg ="#000000FF",
widget = wibox.container.background, widget = wibox.container.background,
ontop = true, ontop = true,
visible = true, visible = true,

View File

@ -70,12 +70,10 @@ widget.widget = wibox.widget {
widget.widget:connect_signal("mouse::enter", function(result) widget.widget:connect_signal("mouse::enter", function(result)
widget.widget.bg = beautiful.color.bar.hover_bg widget.widget.bg = beautiful.color.bar.hover_bg
awesome.emit_signal("module::volume:popup_show_stay")
end) end)
widget.widget:connect_signal("mouse::leave", function(result) widget.widget:connect_signal("mouse::leave", function(result)
widget.widget.bg = beautiful.color.transparent widget.widget.bg = beautiful.color.transparent
awesome.emit_signal("module::volume:popup_show")
end) end)
widget.widget:connect_signal("button::press", widget.widget:connect_signal("button::press",
@ -93,7 +91,7 @@ widget.widget:connect_signal("button::press",
elseif (button == 5) then elseif (button == 5) then
volume.volume_down(config.volume.scroll_step) volume.volume_down(config.volume.scroll_step)
end end
awesome.emit_signal("module::volume:popup_update") awesome.emit_signal("module::volume:popup_show_stay")
end end
) )