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

Ability to recreate virtual displays with pre-defined properties #7375

Open
mdhen opened this issue Jan 11, 2023 · 5 comments
Open

Ability to recreate virtual displays with pre-defined properties #7375

mdhen opened this issue Jan 11, 2023 · 5 comments
Labels
enhancement New feature or incremental improvement

Comments

@mdhen
Copy link

mdhen commented Jan 11, 2023

Currently it is impossible to recreate a specifically named HEADLESS display that has been destroyed with the unplug command. It would be very useful for sway to respect the naming of a created virtual display and not auto sequence the numbers up.

Use case: create virtual display with pre-defined resolution, location, and frame rate for remote gaming via sunshine/moonlight, and have the ability to destroy and recreate that specific output so it doesn't have to be left up all the time. As of now if I destroy a HEADLESS-1 output and then create a HEADLESS-1 output later it ignores my naming intentions and creates a HEADLESS-2 output.

@mdhen mdhen added the enhancement New feature or incremental improvement label Jan 11, 2023
@bl4ckb0ne
Copy link
Contributor

Closing as dup of #7374, the value increasing is by design and this wont be changed.

@bl4ckb0ne bl4ckb0ne closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2023
@emersion
Copy link
Member

Hm, this can almost be done with Sway output config. Just missing a way to match the output type.

(This could be done with a script via the Sway IPC or even a Wayland client using wlr-output-management.)

@emersion
Copy link
Member

Kind of related is #6410 (for improved output matching).

@bl4ckb0ne bl4ckb0ne reopened this Jan 16, 2023
@jivandabeast
Copy link

Was there ever any movement or a workaround found for this?

@finem4n
Copy link

finem4n commented Oct 15, 2024

bl4ckb0ne
Could you explain reasoning behind this design?
I use sway's headless outputs in conjunction with wayvnc to use my second laptop as an external monitor. And the value increase breaks my waybar's and kanshi's configs whenever I recreate headless output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

No branches or pull requests

5 participants