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

Support specifying output by "make model serial", not just name #27

Closed
gnull opened this issue Oct 30, 2022 · 2 comments
Closed

Support specifying output by "make model serial", not just name #27

gnull opened this issue Oct 30, 2022 · 2 comments

Comments

@gnull
Copy link

gnull commented Oct 30, 2022

The output names (like eDP-1) are unpredictable, and depend on the order in which you connect your external monitors. So the established way of binding programs and settings to outputs is to address the monitors by "Make model serial" (for example, Goldstar Company Ltd LG IPS FULLHD 604NTDV33634) which are unique. This is how Sway and Kanshi do it, for example.

Can you please add the support for this to nwg-wrapper? I'd like to be able to do nwg-wrapper -o 'Goldstar Company Ltd LG IPS FULLHD 604NTDV33634' and have the overlay drawn on the specified monitor.

https://git.sr.ht/~emersion/kanshi/tree/eddaeac2/item/main.c#L25

Here, you can find an example of how Kanshi implements the matching logic. (Maybe you could even borrow the code from there.)

Ivan

@nwg-piotr
Copy link
Owner

This is only true for Thunderbolt, otherwise they're the same every time. I've implemented "generic" output names in most of my other apps, but let me be honest: nwg-wrapper was written on demand, and is actually useless to me. My time is limited. Feel free to contribute, if you want.

@gnull
Copy link
Author

gnull commented Oct 30, 2022 via email

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

No branches or pull requests

2 participants