From 6511bf29f9a8c3082d5bbdccaf5fa8ad3de0214d Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Mon, 30 Apr 2018 08:08:26 +0200 Subject: [PATCH] Bugfix for #106 and add to changelog --- README.md | 1 + autorandr.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b25a91..70fa161 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,7 @@ profiles matching multiple (or any) monitors. ## Changelog * *2018-04-19* Bugfix: Do not load default profile unless --change is set +* *2018-04-30* Added a `AUTORANDR_MONITORS` variable to hooks (by @bricewge, #106) **autorandr 1.5** diff --git a/autorandr.py b/autorandr.py index 391f356..f14f5ab 100755 --- a/autorandr.py +++ b/autorandr.py @@ -1164,7 +1164,7 @@ def main(argv): exec_scripts(profile_folder, "postsave", { "CURRENT_PROFILE": options["--save"], "PROFILE_FOLDER": profile_folder, - "MONITORS": ":".join(load_config.keys()), + "MONITORS": ":".join(config.keys()), }) except Exception as e: raise AutorandrException("Failed to save current configuration as profile '%s'" % (options["--save"],), e) -- 2.39.2