From: Epakai Date: Fri, 9 Jun 2023 09:53:40 +0000 (-0500) Subject: Direct --match-edid renaming of output messages to stderr X-Git-Tag: 1.14~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=245211083142667657315afbd3f3b2bda352f6ab;p=deb_pkgs%2Fautorandr.git Direct --match-edid renaming of output messages to stderr This change helps scripts that consume autorandr output to only deal with profile names. My particular concern is with the output from 'autorandr --match-edid --detected'. With this change, only the detected profiles will go to another script. Command line users can still see the relevant messages if they have concerns about which port is in use. --- diff --git a/autorandr.py b/autorandr.py index 88dae0b..9f8de14 100755 --- a/autorandr.py +++ b/autorandr.py @@ -735,7 +735,7 @@ def update_profiles_edid(profiles, config): if profile_config[c].fingerprint != fingerprint or c == fp_map[fingerprint]: continue - print("%s: renaming display %s to %s" % (p, c, fp_map[fingerprint])) + print("%s: renaming display %s to %s" % (p, c, fp_map[fingerprint]), file=sys.stderr) tmp_disp = profile_config[c]