-
Notifications
You must be signed in to change notification settings - Fork 203
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 output IDs #368
base: master
Are you sure you want to change the base?
Support output IDs #368
Conversation
Unfortunately, this adds assumptions about the format of the output description which are unreliable and non-portable across compositors. I'd rather not do that. |
You're definitively right, I was wondering if you can point me in the right direction to reliably get this ID just as in Kanshi or sway |
Sadly there is no way to get this information. I'm not sure just adding an event to pass it to clients is a good way forward, an opaque tag might be better, see the discussions in https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/109#note_970789 |
Sorry I don't follow, both sway and kanshi supports targeting the output by the identifier which I want to do here as well. I just pushed a new commit to simply check if the output description contains the output name provided to --image, so |
From the perspective of user-friendly per-display configuration, the use-case behind this PR is a great idea. It would unify the configuration matching behavior of output specifiers for The nice thing these days is that EDID is well supported by the vast majority of output displays, thanks to the standardization efforts of VESA, and CTA (formerly CEA) we have CTA-861. For the edge cases where devices deviate from the standards or misbehave, the EDID data can be overridden by placing files in Another nice thing is that EDID is also supported by the vast majority of DRM drivers. Might be worth considering using at least the Footnotes
|
... until swaywm/swaylock#368 feature is implemented
Notes: - `*_output_name` macro vars expand only when the display is connected - This is due to subshell expansion & parsing caveats introduced by 4ef92e6 - Caused by: Workaround hack for issue that will be fixed by swaywm/swaylock#368
Notes: - `*_output_name` macro vars expand only when the display is connected - This is due to subshell expansion & parsing caveats introduced by 045074d - Caused by: Workaround hack for issue that will be fixed by swaywm/swaylock#368
I need to support targeting the output with the output identifier (
Dell Inc. DELL U3223QE GB6Y9P3
) rather than just the output name (eg.DP-6
) because the output name might change every time I replug my monitors and I want my internal OLED display to have no image while my external monitors should have a nice image.Example:
swaylock -f -c 000000 --image "Dell Inc. DELL U3223QE GB6Y9P3":~/Pictures/1.jpg -d
The wl_output_description returns the full model, make and output name so I am trimming the output name from the output description to match kanshi and sway output id matching.