X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/49f0200c11b3f7f8e2d2f90f570ac77d9da42151..73c45eaeed3a962894c26ee021d12f9e1402a857:/dsl.py diff --git a/dsl.py b/dsl.py index f9c58fa..52bcd08 100755 --- a/dsl.py +++ b/dsl.py @@ -46,7 +46,7 @@ class ScreenSetup: return args def getExternalArgs(self, intName): - args = ["--mode", res2xrandr(self.extResolution)] + args = ["--mode", res2xrandr(self.extResolution)] # set external screen to desired resolution if self.extIsPrimary: args.append('--primary') if self.relPosition == RelativeScreenPosition.LEFT: @@ -187,8 +187,7 @@ if __name__ == "__main__": usedExternalConnector = findAvailableConnector(externalConnectors, connectors) # *the* external connector which is actually used if usedExternalConnector is not None: # there's an external screen connected, we need to ask what to do # get setup - dialogue = gui.getDialogue(connectors[internalConnector], connectors[usedExternalConnector]) - setup = dialogue.run() + setup = gui.setup(connectors[internalConnector], connectors[usedExternalConnector]) if setup is None: sys.exit(1) # the user canceled # apply it connectorArgs[internalConnector] = setup.getInternalArgs()