]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
In debug mode, output commands that will be run
[deb_pkgs/autorandr.git] / autorandr.py
index a65322d90c4ea4168a4748ba47befb5423e1de85..9531f6d6705759c4b0f75b83ef9776e98e4f22ad 100755 (executable)
@@ -898,6 +898,9 @@ def main(argv):
                     "PROFILE_FOLDER": scripts_path,
                 }
                 exec_scripts(scripts_path, "preswitch", script_metadata)
+                if "--debug" in options:
+                    print("Going to run:")
+                    apply_configuration(load_config, config, True)
                 apply_configuration(load_config, config, False)
                 exec_scripts(scripts_path, "postswitch", script_metadata)
         except Exception as e: