diff --git a/README.md b/README.md index 1a9e493..447dc11 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ So I went and wrote one. * Allow per-monitor scaling * Allow arbitrary monitor positioning * Implement "scale everything so all the pixels are the same size" (not done yet) -* Support rotation (not there yet) ## To try: diff --git a/main.py b/main.py index 9d40e9f..0d6914f 100644 --- a/main.py +++ b/main.py @@ -99,9 +99,6 @@ class Window(QObject): self.ui.resetButton.clicked.connect(self.do_reset) self.ui.cancelButton.clicked.connect(self.ui.reject) - def orientation_changed(self): - print('Orientation: ', self.ui.orientationCombo.currentIndex()) - def do_reset(self): for n in self.xrandr_info: self.xrandr_info[n].update(self.orig_xrandr_info[n]) @@ -131,6 +128,12 @@ class Window(QObject): self.adjust_view() self.scale_changed() # Trigger scale labels update + def orientation_changed(self): + mon = self.ui.screenCombo.currentText() + orientation = self.ui.orientationCombo.currentIndex() + self.xrandr_info[mon]["orientation"] = orientation + self.mode_changed() + def mode_changed(self): mon = self.ui.screenCombo.currentText() mode = self.ui.modes.currentText()