alex-courtis / way-displays

way-displays: Auto Manage Your Wayland Displays
MIT License
239 stars 12 forks source link

Only one monitor ON #169

Open jagjordi opened 1 month ago

jagjordi commented 1 month ago

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 commented 1 month ago

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

alex-courtis commented 1 month ago

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 commented 1 month ago

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

jagjordi commented 1 month ago

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 commented 1 month ago

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"