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).
This commit is contained in:
Vincent Bernat 2012-07-21 19:05:11 +02:00
parent a2451c2a04
commit 12c3e37fbc

View file

@ -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" },