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),
widget = wibox.container.margin
},
bg ="#000000CC",
bg ="#000000FF",
widget = wibox.container.background,
ontop = true,
visible = true,

View File

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

View File

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

View File

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

View File

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