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

feature request: toggle multihead monitors on/off #4167

Closed
FedericoCeratto opened this issue May 21, 2019 · 7 comments
Closed

feature request: toggle multihead monitors on/off #4167

FedericoCeratto opened this issue May 21, 2019 · 7 comments

Comments

@FedericoCeratto
Copy link

Hi and thanks for developing sway.
It would be really nice to be able to toggle multihead monitors between 4 configurations using keys:

  • only monitor 1 (monitor 2 goes off)
  • only monitor 2
  • both on, mirrored
  • both on, side by side

Thanks

@emersion
Copy link
Member

Duplicate of #1666

@emersion emersion marked this as a duplicate of #1666 May 21, 2019
@FedericoCeratto
Copy link
Author

@emersion this issue is about toggling monitors at "runtime" rather than changing configuration and restarting sway.

@emersion
Copy link
Member

You can already do that, e.g.:

swaymsg output XXX disable

@japhir
Copy link
Contributor

japhir commented May 24, 2019

Currently I type that in terminal manually, but it would be quite nice to have something like bindsym XF86Display exec output * toggle, which would do what @FedericoCeratto suggests, toggling which outputs are on/off/mirrored.

@Emantor
Copy link
Contributor

Emantor commented May 24, 2019

toggle was also implemented in a recent PR, although I doubt you'll want to use it for all outputs. I use it for my Laptops internal screen, however for all other use cases an external program is more suited.
A program implementing wlr-output-management-v1, see #4169 would be best.

@layus
Copy link

layus commented Oct 27, 2019

As it not mentioned here, you should be aware that this idea relates to kanshi. Kanshi applies configurations based on the current set of plugged-in displays. But you can abuse it to load a differrent config file each time you press on a given key. That requires a bit of scripting but would end up being very easy to use and maintain.

@emersion
Copy link
Member

emersion commented Oct 28, 2019

But you can abuse it to load a differrent config file each time you press on a given key.

A planned feature to avoid the need for this workaround: emersion/kanshi#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants