# unknown line
# not fatal as my xrandr shows strange stuff when a display is enabled, but not connected
#raise Exception("Unknown line in xrandr output:\n"+line)
# unknown line
# not fatal as my xrandr shows strange stuff when a display is enabled, but not connected
#raise Exception("Unknown line in xrandr output:\n"+line)
if connector == internalConnector:
raise Exception("%s is both internal and external, that doesn't make sense." % connector)
else:
if connector == internalConnector:
raise Exception("%s is both internal and external, that doesn't make sense." % connector)
else:
externalConnectors.remove(internalConnector)
if not externalConnectors:
raise Exception("No external connector found - either your config is wrong, or your machine has only one connector.")
externalConnectors.remove(internalConnector)
if not externalConnectors:
raise Exception("No external connector found - either your config is wrong, or your machine has only one connector.")
call = ["xrandr"]
for name in connectorArgs:
call += ["--output", name] + connectorArgs[name]
call = ["xrandr"]
for name in connectorArgs:
call += ["--output", name] + connectorArgs[name]