diff options
author | Ryan Walklin <ryan@testtoast.com> | 2018-10-31 21:06:49 +0000 |
---|---|---|
committer | Ryan Walklin <ryan@testtoast.com> | 2018-11-05 22:58:27 +0000 |
commit | 5032acb7a574ce3e8dbfdfb1304d871e64ae68d6 (patch) | |
tree | 6144d7050fa2ac7383ffbe614cd76697f36929c8 /sway/sway-output.5.scd | |
parent | Merge pull request #3068 from emersion/effective-damage (diff) | |
download | sway-5032acb7a574ce3e8dbfdfb1304d871e64ae68d6.tar.gz sway-5032acb7a574ce3e8dbfdfb1304d871e64ae68d6.tar.zst sway-5032acb7a574ce3e8dbfdfb1304d871e64ae68d6.zip |
Add relative output transform
This commit enhances the output transform
command with options for a relative transform,
i.e. the provided transform will be applied as
an offset to the current transform. Append
`clockwise` to rotate clockwise from the current
rotation, or `anticlockwise` to rotate in the
opposite direction.
For example, if the output LVDS-1 is rotated
90 degrees clockwise, the command
`output LVDS-1 transform 90 clockwise`
will rotate the display to 180 degrees.
All transform options are supported,
including flipped transforms.
Relative transforms can only be applied to
a single output and cannot be used with
a wildcard (*) output specifier.
Diffstat (limited to 'sway/sway-output.5.scd')
-rw-r--r-- | sway/sway-output.5.scd | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sway/sway-output.5.scd b/sway/sway-output.5.scd index 1b456008..37b7108b 100644 --- a/sway/sway-output.5.scd +++ b/sway/sway-output.5.scd | |||
@@ -59,10 +59,13 @@ must be separated by one space. For example: | |||
59 | Sets the background of the given output to the specified color. _color_ | 59 | Sets the background of the given output to the specified color. _color_ |
60 | should be specified as _#RRGGBB_. Alpha is not supported. | 60 | should be specified as _#RRGGBB_. Alpha is not supported. |
61 | 61 | ||
62 | *output* <name> transform <transform> | 62 | *output* <name> transform <transform> [clockwise|anticlockwise] |
63 | Sets the background transform to the given value. Can be one of "90", "180", | 63 | Sets the background transform to the given value. Can be one of "90", "180", |
64 | "270" for rotation; or "flipped", "flipped-90", "flipped-180", "flipped-270" | 64 | "270" for rotation; or "flipped", "flipped-90", "flipped-180", "flipped-270" |
65 | to apply a rotation and flip, or "normal" to apply no transform. | 65 | to apply a rotation and flip, or "normal" to apply no transform. If a single |
66 | output is chosen and a rotation direction is specified | ||
67 | (_clockwise_ or _anticlockwise_) then the transform is added or | ||
68 | subtracted from the current tranform. | ||
66 | 69 | ||
67 | *output* <name> disable|enable | 70 | *output* <name> disable|enable |
68 | Enables or disables the specified output (all outputs are enabled by | 71 | Enables or disables the specified output (all outputs are enabled by |