diff --git a/rc.lua b/rc.lua index b75fc48..cbec996 100644 --- a/rc.lua +++ b/rc.lua @@ -804,6 +804,20 @@ screen.connect_signal("arrange", function (s) end end) +-- Make wibar not on top when fullscreen clients +function toggle_wibar_ontop(c) + if c.fullscreen then + c.screen.mywibox.ontop = false + else + c.screen.mywibox.ontop = true + end +end + +client.connect_signal("manage", toggle_wibar_ontop) +client.connect_signal("focus", toggle_wibar_ontop) +client.connect_signal("property::floating", toggle_wibar_ontop) +client.connect_signal("property::fullscreen", toggle_wibar_ontop) + -- awful.screen.set_auto_dpi_enabled(true) -- load the widget code