Only add rules for a second screen if there is one
This commit is contained in:
parent
b4c2657120
commit
ed09461ee7
1 changed files with 6 additions and 2 deletions
|
@ -423,14 +423,18 @@ awful.rules.rules = {
|
||||||
properties = { fullscreen = true } },
|
properties = { fullscreen = true } },
|
||||||
{ rule = { instance = "RogueLegacy.exe" },
|
{ rule = { instance = "RogueLegacy.exe" },
|
||||||
properties = { fullscreen = true } },
|
properties = { fullscreen = true } },
|
||||||
{ rule = { class = "Conkeror" },
|
|
||||||
properties = { tag = tags[2][1] } },
|
|
||||||
{ rule = { class = "Emacs" },
|
{ rule = { class = "Emacs" },
|
||||||
properties = { tag = tags[1][1] } },
|
properties = { tag = tags[1][1] } },
|
||||||
-- Set Firefox to always map on tags number 2 of screen 1.
|
-- Set Firefox to always map on tags number 2 of screen 1.
|
||||||
-- { rule = { class = "Firefox" },
|
-- { rule = { class = "Firefox" },
|
||||||
-- properties = { tag = tags[1][2] } },
|
-- properties = { tag = tags[1][2] } },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if #tags > 1 then
|
||||||
|
awful.util.table.join(awful.rules.rules,
|
||||||
|
{ { rule = { class = "Conkeror" },
|
||||||
|
properties = { tag = tags[2][1] } } })
|
||||||
|
end
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Signals
|
-- {{{ Signals
|
||||||
|
|
Loading…
Reference in a new issue