+externalName = None # *the* external connector which is actually used
+externalResolutions = None # resultions of the external connector
+args = {} # maps connector names to xrand arguments
+
+# look for enabled external screen, disable all the others
+for name in externalNames:
+ if externalResolutions is None and name in connectors:
+ externalName = name
+ externalResolutions = connectors[name]
+ else:
+ args[name] = ["--off"]