autorandr
autorandr copied to clipboard
How to use the resolution as trigger?
How can I use the resolution as trigger or at least condition?
For the moment I loop poll with a very hacky script (unreliably) xrandr | grep -c "3840x2160" to trigger autorandr. I'd rather have autorandr handle this.
autorandr doesn't have such a feature. Maybe you can make it work with a generic setup (EEID *, or even a pattern encoding the resolution you want if you can find out how) plus a blocked script.
Because EDIDs are binary, and asterisk matching is quite limited (can't have more than one asterisk), it's quite difficult to formulate a pattern that matches a certain resolution.
Here's a feature proposal:
In the setup file, other than EDIDs with asterisks, we could also have something like this
DP-1 native_resolution=3840x2160
eDP-1 00ffffffff....
If you'd be willing to accept this, I also have a PR for your review