1 -- Signal function to execute when a new client appears.
2 client.connect_signal("manage", function (c, startup)
4 c:connect_signal("mouse::enter", function(c)
5 if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
6 and awful.client.focus.filter(c) then
12 -- Set the windows at the slave,
13 -- i.e. put it at the end of others instead of setting it master.
14 awful.client.setslave(c)
16 -- Put windows in a smart way, only if they does not set an initial position.
17 if not c.size_hints.user_position and not c.size_hints.program_position then
18 awful.placement.no_overlap(c)
19 awful.placement.no_offscreen(c)
24 client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
25 client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)