From b5a1221fb09fa5b88b2ce2afca5e071c20575704 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 27 Feb 2013 20:53:04 -0500 Subject: [PATCH] Add focus on new for clients --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 39c256f..6666d96 100644 --- a/init.lua +++ b/init.lua @@ -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