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:
parent
db3003aa48
commit
41be59ba27
|
@ -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)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
Loading…
Reference in a new issue