mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-22 02:52:23 +00:00
React to orientation selection
This commit is contained in:
parent
98bcddaecd
commit
9970d18422
@ -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:
|
||||
|
||||
|
9
main.py
9
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()
|
||||
|
Loading…
Reference in New Issue
Block a user