Add focus on new for clients

This commit is contained in:
Emmanuel Lepage Vallee 2013-02-27 20:53:04 -05:00
parent a45477984c
commit b5a1221fb0
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@ local function match_client(c, startup)
if rules.properties.centered == true then
awful.placement.centered(c, nil)
end
--Focus new client
if rules.properties.focus_on_new == true then
c.focus = true
end
--Set other properties
for k,v in pairs(rules.properties) do
c[k] = v