From d2ad4861f839cd1fe1d6126cdd36621bbbc65054 Mon Sep 17 00:00:00 2001 From: Adrian Lopez Date: Fri, 13 Oct 2017 13:49:06 +0200 Subject: [PATCH] Previous name was confusing --- autorandr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autorandr.py b/autorandr.py index 44448e4..96c9d0b 100755 --- a/autorandr.py +++ b/autorandr.py @@ -50,7 +50,7 @@ except NameError: virtual_profiles = [ # (name, description, callback) ("common", "Clone all connected outputs at the largest common resolution", None), - ("clone", "Clone all connected outputs with the largest resolution and scaled down in the others", None), + ("clone-largest", "Clone all connected outputs with the largest resolution and scaled down in the others", None), ("horizontal", "Stack all connected outputs horizontally at their largest resolution", None), ("vertical", "Stack all connected outputs vertically at their largest resolution", None), ] @@ -716,7 +716,7 @@ def generate_virtual_profile(configuration, modes, profile_name): shift += int(mode[shift_index]) else: configuration[output].options["off"] = None - elif profile_name == "clone": + elif profile_name == "clone-largest": biggest_resolution = sorted([output_modes[0] for output, output_modes in modes.items()], key=lambda x: int(x["width"])*int(x["height"]), reverse=True)[0] for output in configuration: configuration[output].options = {} -- 2.39.2