Only add rules for a second screen if there is one

This commit is contained in:
Tom Willemse 2014-08-21 20:05:59 +02:00
parent b4c2657120
commit ed09461ee7

View file

@ -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