action: allow configurable policy in AutoPlace action

Closes: #1784.
This commit is contained in:
Andrew J. Hesford 2024-05-07 09:46:05 -04:00 committed by Johan Malm
parent 208f383c66
commit 89589f17c4
8 changed files with 60 additions and 21 deletions

View file

@ -251,9 +251,12 @@ Actions are used in menus and keyboard/mouse bindings.
*output_name* The name of virtual output. If not supplied, will remove
the last virtual output added.
*<action name="AutoPlace" />*
Use the automatic placement policy to move the active window to a
position on its output that will minimize overlap with other windows.
*<action name="AutoPlace" policy="value"/>*
Reposition the window according to the desired placement policy.
*policy* [automatic|cursor|center] Use the specified policy, which has
the same meaning as the corresponding value for *<placement><policy>*.
Default is automatic.
*<action name="Shade" />*++
*<action name="Unshade" />*++