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

Only one monitor ON #169

Open
jagjordi opened this issue May 9, 2024 · 5 comments
Open

Only one monitor ON #169

jagjordi opened this issue May 9, 2024 · 5 comments
Labels
question Further information is requested

Comments

@jagjordi
Copy link

jagjordi commented May 9, 2024

I have a laptop that I want to use with an external display.
Is there a way to configure WAY-displays so that only one monitor is on?
For example I want the embedded display on if no other monitor is connected, and when an external is connected I want the embedded on.
I don't want to close the lid because I want to use the webcam on the laptop and the wifi signal gets weaker with the lid closed

@jagjordi
Copy link
Author

I guess a more "generic" category for this is the usage of "conditions" in the configuration.

@alex-courtis
Copy link
Owner

There is unfortunately no automated configuration for this. You can temporarily disable a display, added for similar use case #16

way-displays -s DISABLED "monitor maker ABC model XYZ"

See wiki CLI

Here are two recipes to automate this: rofi menu and script

@alex-courtis
Copy link
Owner

Toggles #121 and profiles #83 will make this much easier.

@alex-courtis alex-courtis added the question Further information is requested label May 11, 2024
@jagjordi
Copy link
Author

I ended up using wlr-randr to turn the monitor off. The problem with the rofi solution is that if I unplug the monitor while the laptio display is off, since its in the DISABLED list it remains off. Would it be possible to achieve the same without wlr-randr ?

@alex-courtis
Copy link
Owner

I ended up using wlr-randr to turn the monitor off. The problem with the rofi solution is that if I unplug the monitor while the laptio display is off, since its in the DISABLED list it remains off. Would it be possible to achieve the same without wlr-randr ?

You cannot use wlr-randr to turn it off - way-displays will just turn it back on.

Your best (only) option is to you way-displays:

Turn it off: way-displays -s DISABLED "monitor maker ABC model XYZ"

Turn it back on: way-displays -d DISABLED "monitor maker ABC model XYZ"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants