From 582290b6d53679ece8653f976b4daf1c709b757b Mon Sep 17 00:00:00 2001
From: Phillip Berndt <phillip.berndt@googlemail.com>
Date: Thu, 28 Apr 2016 15:38:26 +0200
Subject: [PATCH] In debug mode, output commands that will be run

---
 autorandr.py | 3 +++
 1 file changed, 3 insertions(+)

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:
-- 
2.39.5