tags: only browser window have to go in "www" tag. Ditto for "im".

Other kind of windows may go wherever they want.
This commit is contained in:
Vincent Bernat 2012-09-08 23:26:28 +02:00
parent 961719eadd
commit 45951e9dc1
2 changed files with 4 additions and 11 deletions

View file

@ -20,8 +20,7 @@ awful.rules.rules = {
end end
end end
end }, end },
{ rule_any = { class = { "Iceweasel", "Firefox", "Chromium", "Conkeror", { rule_any = { class = { "Iceweasel", "Firefox", "Chromium", "Conkeror" } },
"Xulrunner-15.0" } },
callback = function(c) callback = function(c)
-- All windows should be slaves, except the browser windows. -- All windows should be slaves, except the browser windows.
if c.role ~= "browser" then awful.client.setslave(c) end if c.role ~= "browser" then awful.client.setslave(c) end

View file

@ -37,20 +37,14 @@ shifty.config.tags = {
mwfact = 0.2, mwfact = 0.2,
exclusive = true, exclusive = true,
icon = tagicon("im"), icon = tagicon("im"),
nopopup = true nopopup = true, -- don't give focus on creation
} }
} }
-- Also, see rules.lua -- Also, see rules.lua
shifty.config.apps = { shifty.config.apps = {
{ {
match = { match = { role = { "browser" } },
"Iceweasel",
"Firefox",
"Chromium",
"Conkeror",
"Xulrunner-15.0"
},
tag = "3↭www", tag = "3↭www",
}, },
{ {
@ -58,7 +52,7 @@ shifty.config.apps = {
tag = "2↭emacs", tag = "2↭emacs",
}, },
{ {
match = { "Pidgin" }, match = { role = { "conversation", "buddy_list" } },
tag = "4↭im", tag = "4↭im",
}, },
{ {