-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature request: Disable/enable monitors #16
Comments
Actually doing it in the ORDER field might not make sense because if you plug another monitor in it's more user-friendly to have that monitor turn on automatically than to have to reach into the config. Maybe an IGNORE field to list displays to ignore is better. For example turn off the laptop screen:
|
Yes, we can do this. The use case for powering off an unwanted monitor is clear. I'm not quite sure when/why it is turned on. Perhaps you could outline your workflow throughout the day, so that we can come up with a good solution.
As you said, this won't work. Some users (including me) list only the left/top monitor in ORDER, and expect others to appear afterwards.
This seems like a workable solution. However, it doesn't seem very user friendly: you would need to remove the monitor from this section to be able to use it. I don't think I am properly understanding your use case. A dirty hack like On Games And Scale could be used, however that is a very temporary workaround. |
I have two monitors plugged into a thunderbolt dock that connects to my laptop. I want to turn my laptop screen off and my monitors on when I plug in the dock. While I could get two monitors if I close the lid on my laptop, the fan is in the hinge and it gets unbearably hot if I do that. So I prefer to just turn the monitor off. This supposed to be possible with kanshi but I never got it to work. |
I understand. We need a mechanism that allows you to disable/enable a monitor when you instruct. Automated options:
This is very complex to implement and, as you say, difficult to "program" as a user. Not practical. Manual options:
3 would be the ideal solution, however complex and time consuming to build. I would happily review a PR for such solution. It seems that 1 and 2 are the practical solution, via the "cfg file API". Are you happy with that, if I add IGNORE? I am not completely comfortable with 1/2 as it is a very clunky solution that requires fiddly interactions from the user, resulting in a poor experience. However, I cannot conceive of any other practical alternatives. |
Edit: see #16 (comment) |
Yes, let's try it and see how it goes. |
Please test on the feature branch:
Once you're done, you can remove the test version from
You can use yq:
enable:
|
Thanks, it works as expected. A side note, wl-randr cannot be used to turn on/off monitors when way-displays is running. Maybe mention this in the readme. I don't know if sway 1.7 with the |
That is working as intended; way-displays will turn them back on, unless they are disabled or the lid is closed. I might add that to the README, thanks.
dpms has no effect; the displays are still there and enabled, just not displaying anything. I guess it is that way so that your workspaces are not interrupted during "screensaver". |
Thank you for your ideas and testing @kiasoc5 - released as 1.3.0 |
First of all I love this program, I like that way-displays turns on all monitors when you first run it without configuration, and the config is very straightforward. And it autoupdates when the config is saved, much faster than wlr-randr and wdisplays.
But currently all monitors are turned on by default. It would be great to specify which monitors are powered on or off. One way to implement this in the config is to only turn on monitors listed in the ORDER. For example:
eDP-1 on only:
HDMI-1 on only:
Both on: (and keep the current behavior of turning all monitors on if the order key is undefined or empty)
Maybe ORDER could also be renamed to DISPLAYS to be more intuitive.
What do you think?
The text was updated successfully, but these errors were encountered: