autorandr icon indicating copy to clipboard operation
autorandr copied to clipboard

How to use the resolution as trigger?

Open faaafo opened this issue 4 years ago • 2 comments

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.

faaafo avatar Feb 14 '21 08:02 faaafo

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.

phillipberndt avatar Mar 04 '21 06:03 phillipberndt

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

ackerleytng avatar Apr 11 '23 04:04 ackerleytng