Sway: Can set primary output/display?

Created on 21 Nov 2015  路  4Comments  路  Source: swaywm/sway

Is there an option to set the primary display, like I could with xrandr?

xrandr --output HDMI1 --mode 1680x1050 --pos 0x0 --rotate normal --output HDMI2 --primary --mode 1680x1050 --pos 1680x0 --rotate normal --output HDMI3 --mode 1680x1050 --pos 3360x0 --rotate normal

I see there's a 'primary' description here: https://github.com/SirCmpwn/sway/blob/f64b7e7/sway/ipc.c#L444
but there isn't any documentation saying I can, for example, write:

output HDMI1 resolution 1680x1050 position 0,0
output HDMI2 primary resolution 1680x1050 position 1680,0
output HDMI3 resolution 1680x1050 position 3360,0

in sway config?

All 4 comments

There's no such thing as a primary display on Wayland.

Ah, derp. Well then, I wonder how swaybar will decide what output to be on... Probably an explicit setting, I'll bet.

Correct.

Excellent. This will serve for posterity, anyone else wanting to know some more differences between wayland and X output handling.

Thank you for your work!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  4Comments

marcoms picture marcoms  路  3Comments

emersion picture emersion  路  4Comments

WhyNotHugo picture WhyNotHugo  路  3Comments

jakubn551 picture jakubn551  路  4Comments