I made a change in my rc.lua
to always open Chromium on screen 2:
awful.rules.rules = {
-- many other rules here...
-- Set Chromium to always map on screen "2"
{ rule = { class = "Chromium" },
properties = { screen = 2 } },
}
However, when I do not have an external monitor attached, I get an error ("screen expected, got nil"). How do I modify this rule to use screen 1 if screen 2 is not available?