From 245211083142667657315afbd3f3b2bda352f6ab Mon Sep 17 00:00:00 2001 From: Epakai Date: Fri, 9 Jun 2023 04:53:40 -0500 Subject: [PATCH] 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. --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.39.2