From: Phillip Berndt Date: Thu, 28 Apr 2016 13:38:26 +0000 (+0200) Subject: In debug mode, output commands that will be run X-Git-Tag: 1.0~25 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=582290b6d53679ece8653f976b4daf1c709b757b In debug mode, output commands that will be run --- diff --git a/autorandr.py b/autorandr.py index a65322d..9531f6d 100755 --- a/autorandr.py +++ b/autorandr.py @@ -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: