Hello! I would like to have the following behavior: floating windows
should be opened in the center of the screen by default (and if this
place is already taken, they should be opened somewhere else). That is
what I have in my rc.lua:
client.connect_signal("manage", function (c)
...
if not c.size_hints.user_position and not c.size_hints.program_position then
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
...
It prevents windows from overlapping and appearing outside the screen.
I have also added the following to rules:
rule = { },
...
callback = function (c)
awful.placement.centered(c,nil)
end},
...
I thought: If window is not floating, than it is tiled, so this setting
will only take effect on floating windows. However, this solution
doesn't seem to be very elegant.
I also face a problem: if there is a maximized window on this tag
c.maximized_horizontal
c.maximized_vertical
then floating windows open in the left bottom corner of the screen by
default, though in other situations (fullscreen window, tiled window,
another window) new floating windows appear in the center.
So, there are two questions:
1.) What should I add to rc.lua, to make floating windows appear in the
center of the screen by default?
2.) How can I overcome that problem with maximized windows?
Thank you in advance.
--
To unsubscribe, send mail to [email protected].