Rmeove auto hide
This commit is contained in:
parent
2293f28643
commit
dcaf91e0a8
59
rc.lua
59
rc.lua
|
@ -336,35 +336,36 @@ awful.screen.connect_for_each_screen(function(s)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
s.detect = gears.timer {
|
-- Auto hide wibar
|
||||||
timeout = 0.35,
|
-- s.detect = gears.timer {
|
||||||
callback = function ()
|
-- timeout = 0.35,
|
||||||
if (mouse.screen ~= s) or
|
-- callback = function ()
|
||||||
(mouse.coords().y < s.geometry.y + s.geometry.height - wibar_height)
|
-- if (mouse.screen ~= s) or
|
||||||
then
|
-- (mouse.coords().y < s.geometry.y + s.geometry.height - wibar_height)
|
||||||
s.mywibox.visible = false
|
-- then
|
||||||
s.detect:stop()
|
-- s.mywibox.visible = false
|
||||||
end
|
-- s.detect:stop()
|
||||||
end
|
-- end
|
||||||
}
|
-- end
|
||||||
|
-- }
|
||||||
s.enable_wibar = function ()
|
--
|
||||||
s.mywibox.visible = true
|
-- s.enable_wibar = function ()
|
||||||
if not s.detect.started then
|
-- s.mywibox.visible = true
|
||||||
s.detect:start()
|
-- if not s.detect.started then
|
||||||
end
|
-- s.detect:start()
|
||||||
end
|
-- end
|
||||||
|
-- end
|
||||||
s.activation_zone = wibox ({
|
--
|
||||||
x = s.geometry.x, y = s.geometry.y + s.geometry.height - 1,
|
-- s.activation_zone = wibox ({
|
||||||
opacity = 0.0, width = s.geometry.width, height = 1,
|
-- x = s.geometry.x, y = s.geometry.y + s.geometry.height - 1,
|
||||||
screen = s, input_passthrough = false, visible = true,
|
-- opacity = 0.0, width = s.geometry.width, height = 1,
|
||||||
ontop = true, type = "dock",
|
-- screen = s, input_passthrough = false, visible = true,
|
||||||
})
|
-- ontop = true, type = "dock",
|
||||||
|
-- })
|
||||||
s.activation_zone:connect_signal("mouse::enter", function ()
|
--
|
||||||
s.enable_wibar()
|
-- s.activation_zone:connect_signal("mouse::enter", function ()
|
||||||
end)
|
-- s.enable_wibar()
|
||||||
|
-- end)
|
||||||
|
|
||||||
-- update_background_widget(s)
|
-- update_background_widget(s)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue