From 12c3e37fbc4948294f54624bdc82dea51b1b9ab7 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 21 Jul 2012 19:05:11 +0200 Subject: [PATCH] rules: non browser windows should be slave This includes the developer tools pane. Also, we rely on the class name instead of the window name (which may change). --- rc/rules.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rc/rules.lua b/rc/rules.lua index 25920bc..b757bb8 100644 --- a/rc/rules.lua +++ b/rc/rules.lua @@ -12,8 +12,12 @@ awful.rules.rules = { { rule = { class = "Emacs" }, properties = { tag = config.tags.emacs }}, -- Browser stuff - { rule_any = { name = { "Iceweasel", "Firefox", "Chromium" } }, - properties = { tag = config.tags.www }}, + { rule_any = { class = { "Iceweasel", "Firefox", "Chromium" } }, + properties = { tag = config.tags.www }, + callback = function(c) + -- All windows should be slaves, except the browser windows. + if c.role ~= "browser" then awful.client.setslave(c) end + end }, { rule = { instance = "plugin-container" }, properties = { floating = true }}, -- Flash with Firefox { rule = { instance = "exe", class="Exe", instance="exe" },