1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 19:22:32 +00:00

#261: added screen arrange signal too

This commit is contained in:
Luca Capezzuto 2019-04-15 11:05:10 +01:00
parent db3003aa48
commit 41be59ba27
No known key found for this signature in database
GPG key ID: EDCFE1C5B0CD8FB5

View file

@ -227,6 +227,18 @@ screen.connect_signal("property::geometry", function(s)
gears.wallpaper.maximized(wallpaper, s, true) gears.wallpaper.maximized(wallpaper, s, true)
end end
end) end)
-- No borders when rearranging only 1 non-floating or maximized client
screen.connect_signal("arrange", function (s)
local only_one = #s.tiled_clients == 1
for _, c in pairs(s.clients) do
if only_one and not c.floating or c.maximized then
c.border_width = 0
else
c.border_width = beautiful.border_width
end
end
end)
-- Create a wibox for each screen and add it -- Create a wibox for each screen and add it
awful.screen.connect_for_each_screen(function(s) beautiful.at_screen_connect(s) end) awful.screen.connect_for_each_screen(function(s) beautiful.at_screen_connect(s) end)
-- }}} -- }}}