Skip to content

Commit

Permalink
non-mirror setup do not change resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Nov 23, 2023
1 parent 7cc3c43 commit 572dc3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_xrandr_monitors(self):
monitors.append(line)
return monitors

def get_xrandr_resotutions(self, monitor):
def get_xrandr_resolutions(self, monitor):
e = False
ret = []
for line in subprocess.getoutput("xrandr").split("\n"):
Expand Down Expand Up @@ -122,7 +122,7 @@ def init_monitor(self):
wtot = 0
self.screen_event_lock = True
for monitor in monitors:
resolution = self.get_xrandr_resotutions(monitor)[0]
resolution = self.get_resolutions(monitor)[0]
os.system(
"xrandr --output {} --mode {}".format(monitor, resolution))
os.system("xrandr --output {} --pos {}x0".format(monitor, wtot))
Expand Down

0 comments on commit 572dc3e

Please sign in to comment.