X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=f14f5ab536152f60109e47524d092f673e0ba753;hb=6b27e2a62d07f864c722c6d19fe5a9ade9457077;hp=57943f7c6c80452eea1d6916b4fe14192a5aee0a;hpb=42c50e502ed30c10c1a2bd3cefe003861963cf61;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 57943f7..f14f5ab 100755 --- a/autorandr.py +++ b/autorandr.py @@ -1161,7 +1161,11 @@ def main(argv): try: profile_folder = os.path.join(profile_path, options["--save"]) save_configuration(profile_folder, config) - exec_scripts(profile_folder, "postsave", {"CURRENT_PROFILE": options["--save"], "PROFILE_FOLDER": profile_folder}) + exec_scripts(profile_folder, "postsave", { + "CURRENT_PROFILE": options["--save"], + "PROFILE_FOLDER": profile_folder, + "MONITORS": ":".join(config.keys()), + }) except Exception as e: raise AutorandrException("Failed to save current configuration as profile '%s'" % (options["--save"],), e) print("Saved current configuration as profile '%s'" % options["--save"]) @@ -1281,6 +1285,7 @@ def main(argv): script_metadata = { "CURRENT_PROFILE": load_profile, "PROFILE_FOLDER": scripts_path, + "MONITORS": ":".join(load_config.keys()), } exec_scripts(scripts_path, "preswitch", script_metadata) if "--debug" in options: