-
Notifications
You must be signed in to change notification settings - Fork 63
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
Able to choose which monitor to display on #64
Conversation
ErikReider
commented
Jan 24, 2022
- Choose monitor as config option
- Notification window logic
- Control center logic
- Test if disconnecting monitor breaks this
- Open on focused monitor if the chosen display isn't found
You may have a better idea. My solution only supports symbolic output names (like |
I'll take a look at this after work :) |
But it doesn't work on other wlroots based WMs though right? The most optimal solution would be to not use sway ipc. Does your stuff work in dwl and river? |
To list outputs on other compositors, you'd need to talk to wlroots, or just parse |
Although it's easier said than done, It would be better to avoid binding to another specific program like wlr-randr, and instead make use of wayland protocols directly I think. |
Of course. I didn't care about it much, as the shell is primarily aimed at sway. Finally I won't avoid doing the same. |
While working on the Swaync panel module, I realized, that the output selection is not really essential to me, since the client will be opened on icon click. In most cases (apart from |
Makes sense to me! Reading around I think the compositor should provide a wl_output for each output without any need to register an output manager, though at least registering a listener for output events might be useful to change output if the configured one is disconnected/unregistered, for instance. |
Yeah. I'll need to build some vala bindnings |
No hurry, if it comes to integration with the shell. It's absolutely usable as is, and looks great. |
@nwg-piotr Found out that there's a way of getting display connector names in GDK but it was deprecated. In GDK 4 they have gdk_monitor_get_connector which also exists in GDK 3 but is private. https://gitlab.gnome.org/GNOME/gtk/-/issues/4982 |
Has this feature been abandoned? |
I've moved it into #262 The only issue is a segfault on monitor disconnect. Otherwise it's ready |