From: Phillip Berndt Date: Thu, 1 Dec 2022 07:31:29 +0000 (+0100) Subject: Consider skip-options in post-apply-check X-Git-Tag: 1.13~9 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=dbd2f7b0d16a1ee1c41c3be8eeb58d06a806a42b Consider skip-options in post-apply-check Otherwise autorandr complains that the profile was not applied correctly. --- diff --git a/autorandr.py b/autorandr.py index 9f30244..5541346 100755 --- a/autorandr.py +++ b/autorandr.py @@ -1625,6 +1625,9 @@ def main(argv): new_config, _ = parse_xrandr_output( ignore_lid=ignore_lid, ) + if "--skip-options" in options: + for output in new_config.values(): + output.set_ignored_options(skip_options) if not is_equal_configuration(new_config, load_config): print("The configuration change did not go as expected:") print_profile_differences(new_config, load_config)