From 2194455d6fa136462f373a6153dae9a22192a449 Mon Sep 17 00:00:00 2001 From: Simon Piriou Date: Mon, 17 May 2021 11:52:46 +0200 Subject: [PATCH] Add an option to match profiles based on edid In some cases the display names change so the profile matching fails. This commit introduces the "--match-edid" option, that allows one to specify that the profiles matching should be done based on display edid. This is done by updating the profiles after loading, based on current display name/edid mapping requested using xrandr. --- autorandr.1 | 3 +++ autorandr.py | 44 +++++++++++++++++++++++++++---- caca | 0 contrib/bash_completion/autorandr | 2 +- contrib/zsh_completion/_autorandr | 1 + 5 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 caca diff --git a/autorandr.1 b/autorandr.1 index d268822..698ac7c 100644 --- a/autorandr.1 +++ b/autorandr.1 @@ -50,6 +50,9 @@ Don't change anything, only print the xrandr commands .BR \-\-fingerprint Fingerprint the current hardware setup .TP +.BR \-\-match-edid +Match displays based on edid instead of name +.TP .BR \-\-force Force loading or reloading of a profile .TP diff --git a/autorandr.py b/autorandr.py index 25b0f53..6ebd552 100755 --- a/autorandr.py +++ b/autorandr.py @@ -80,6 +80,7 @@ Usage: autorandr [options] --detected only list detected (available) configuration(s) --dry-run don't change anything, only print the xrandr commands --fingerprint fingerprint your current hardware setup +--match-edid match diplays based on edid instead of name --force force (re)loading of a profile / overwrite exiting files --skip-options