From 4849bd3c35b471b3bfb772a7178060f4f8f8dd61 Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Thu, 19 Apr 2018 22:16:53 +0200 Subject: [PATCH] Bugfix: Do not load default profile unless --change is set (fixes #105) --- README.md | 2 ++ autorandr.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 999f353..7518128 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,8 @@ profiles matching multiple (or any) monitors. ## Changelog +* *2018-04-19* Bugfix: Do not load default profile unless --change is set + **autorandr 1.5** * *2018-01-03* Add --version diff --git a/autorandr.py b/autorandr.py index db95507..275b0c6 100755 --- a/autorandr.py +++ b/autorandr.py @@ -68,7 +68,7 @@ help_text = """ Usage: autorandr [options] -h, --help get this small help --c, --change reload current setup +-c, --change automatically load the first detected profile -d, --default make profile the default profile -l, --load load profile -s, --save save your current setup to profile @@ -1243,7 +1243,7 @@ def main(argv): if "-d" in options: options["--default"] = options["-d"] - if not load_profile and "--default" in options: + if not load_profile and "--default" in options and "--change" in options: load_profile = options["--default"] if load_profile: -- 2.39.2