From dcaf91e0a8d4ef6b818f0865a29220c4cade551f Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Sat, 22 Jun 2024 20:11:22 +0200 Subject: [PATCH] Rmeove auto hide --- rc.lua | 59 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/rc.lua b/rc.lua index 1149495..7dcb39b 100644 --- a/rc.lua +++ b/rc.lua @@ -336,35 +336,36 @@ awful.screen.connect_for_each_screen(function(s) } end -s.detect = gears.timer { - timeout = 0.35, - callback = function () - if (mouse.screen ~= s) or - (mouse.coords().y < s.geometry.y + s.geometry.height - wibar_height) - then - s.mywibox.visible = false - s.detect:stop() - end - end -} - -s.enable_wibar = function () - s.mywibox.visible = true - if not s.detect.started then - s.detect:start() - end -end - -s.activation_zone = wibox ({ - x = s.geometry.x, y = s.geometry.y + s.geometry.height - 1, - opacity = 0.0, width = s.geometry.width, height = 1, - screen = s, input_passthrough = false, visible = true, - ontop = true, type = "dock", -}) - -s.activation_zone:connect_signal("mouse::enter", function () - s.enable_wibar() -end) + -- Auto hide wibar + -- s.detect = gears.timer { + -- timeout = 0.35, + -- callback = function () + -- if (mouse.screen ~= s) or + -- (mouse.coords().y < s.geometry.y + s.geometry.height - wibar_height) + -- then + -- s.mywibox.visible = false + -- s.detect:stop() + -- end + -- end + -- } + -- + -- s.enable_wibar = function () + -- s.mywibox.visible = true + -- if not s.detect.started then + -- s.detect:start() + -- end + -- end + -- + -- s.activation_zone = wibox ({ + -- x = s.geometry.x, y = s.geometry.y + s.geometry.height - 1, + -- opacity = 0.0, width = s.geometry.width, height = 1, + -- screen = s, input_passthrough = false, visible = true, + -- ontop = true, type = "dock", + -- }) + -- + -- s.activation_zone:connect_signal("mouse::enter", function () + -- s.enable_wibar() + -- end) -- update_background_widget(s)