From: Phillip Berndt Date: Mon, 30 Apr 2018 06:08:26 +0000 (+0200) Subject: Bugfix for #106 and add to changelog X-Git-Tag: 1.6~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6511bf29f9a8c3082d5bbdccaf5fa8ad3de0214d;p=deb_pkgs%2Fautorandr.git Bugfix for #106 and add to changelog --- 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)