Improved popups
parent
4b2e2c8815
commit
b7a7798611
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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'"
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue