From 4503ad2d19d5039259b572729115fef149f1b44e Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Thu, 27 Dec 2018 11:25:48 -0500 Subject: sway-output(5): doc scaling consideration for pos This copies the information regarding positioning outputs when there is scaling involved from the wiki to sway-output(5). --- sway/sway-output.5.scd | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sway') diff --git a/sway/sway-output.5.scd b/sway/sway-output.5.scd index aca5f955..9940d8e8 100644 --- a/sway/sway-output.5.scd +++ b/sway/sway-output.5.scd @@ -36,7 +36,19 @@ must be separated by one space. For example: *output* position|pos Places the specified output at the specific position in the global - coordinate space. + coordinate space. If scaling is active, it has to be considered when + positioning. For example, if the scaling factor for the left output is 2, + the relative position for the right output has to be divided by 2. + + Example: + + output HDMI1 scale 2 + + output HDMI1 pos 0 0 res 3200x1800 + + output eDP1 pos 1600 0 res 1920x1080 + + Note that the x-pos of eDP1 is 1600 = 3200/2. *output* scale Scales the specified output by the specified scale _factor_. An integer is -- cgit v1.2.3