autorandr
autorandr copied to clipboard
make mode optional in profile config
Try to set up a generic "Connect to any monitor without own profile" profile.
I have different monitors with different native resolution. In profile/setup I am able to set DP-1 *
Usually I use the options --auto --left-of eDP-1 to setup the monitors.
The profile/config supports the auto, but mode is mandatory and overrides the auto option.
It would be nice if fb and mode parameters are not passed to xrandr, if autoparameter is given.
Currently my workaround is skip-options mode but it is not optimal, since no non-generic profiles are possible with this setting.
Not tested the left-of parameter, but it should be supported too.
Sounds good to me. Alternatively, having mode unset in the file and skipping the flag in the call if it has that value might work and be even simpler to implement.
If it is simpler, just support configurations without mode in config file is enough. My first atempt was just to remove the line. But I got errors if mode is not set. Did not looked into implementation in detail. If other parameters, like "fb" are calculated from mode, just skip the calculated parameters if no mode set.