river: focus-view and swap by spatial direction

This commit is contained in:
Leon Henrik Plickat
2023-07-08 06:30:27 +02:00
parent 5ce2ca1bc0
commit b35d779122
9 changed files with 205 additions and 172 deletions

View File

@ -35,8 +35,9 @@ over the Wayland protocol.
Focus the next or previous output, the closest output in any direction
or an output by name.
*focus-view* *next*|*previous*
Focus the next or previous view in the stack.
*focus-view* *next*|*previous*|*up*|*down*|*left*|*right*
Focus the next or previous view in the stack or the closest view in
any direction.
*move* *up*|*down*|*left*|*right* _delta_
Move the focused view in the specified direction by _delta_ logical
@ -62,9 +63,9 @@ over the Wayland protocol.
*spawn* only takes a single argument. To spawn a command taking
multiple arguments, wrapping the command in quotes is recommended.
*swap* *next*|*previous*
Swap the focused view with the next/previous visible non-floating
view. If the first/last view in the stack is focused, wrap.
*swap* *next*|*previous*|*up*|*down*|*left*|*right*
Swap the focused view with the next or previous non-floating view in the
stack or the closest non-floating view in any direction.
*toggle-float*
Toggle the floating state of the focused view.