Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the resolution as trigger? #240

Open
faaafo opened this issue Feb 14, 2021 · 2 comments · May be fixed by #342
Open

How to use the resolution as trigger? #240

faaafo opened this issue Feb 14, 2021 · 2 comments · May be fixed by #342

Comments

@faaafo
Copy link

faaafo commented Feb 14, 2021

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.

@phillipberndt
Copy link
Owner

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.

@ackerleytng
Copy link

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 ackerleytng linked a pull request Apr 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants