Added 'move position mouse' command to the userguide.
This commit is contained in:
parent
4a585748a4
commit
d2cfe38c04
|
@ -1637,15 +1637,17 @@ bindsym $mod+f fullscreen toggle
|
||||||
bindsym $mod+t floating toggle
|
bindsym $mod+t floating toggle
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
=== Focusing/Moving containers
|
[[_focusing_moving_containers]]
|
||||||
|
|
||||||
To change the focus, use the focus command: +focus left+, +focus right+, +focus
|
=== Focusing containers
|
||||||
down+ and +focus up+.
|
|
||||||
|
|
||||||
There are a few special parameters you can use for the focus command:
|
To change focus, you can use the +focus+ command. The following options are
|
||||||
|
available:
|
||||||
|
|
||||||
|
left|right|up|down::
|
||||||
|
Sets focus to the nearest container in the given direction.
|
||||||
parent::
|
parent::
|
||||||
Sets focus to the +Parent Container+ of the current +Container+.
|
Sets focus to the parent container of the current container.
|
||||||
child::
|
child::
|
||||||
The opposite of +focus parent+, sets the focus to the last focused
|
The opposite of +focus parent+, sets the focus to the last focused
|
||||||
child container.
|
child container.
|
||||||
|
@ -1659,23 +1661,16 @@ output::
|
||||||
Followed by a direction or an output name, this will focus the
|
Followed by a direction or an output name, this will focus the
|
||||||
corresponding output.
|
corresponding output.
|
||||||
|
|
||||||
For moving, use +move left+, +move right+, +move down+ and +move up+.
|
|
||||||
|
|
||||||
*Syntax*:
|
*Syntax*:
|
||||||
-----------------------------------
|
----------------------------------------------
|
||||||
focus <left|right|down|up>
|
focus left|right|down|up
|
||||||
focus <parent|child|floating|tiling|mode_toggle>
|
focus parent|child|floating|tiling|mode_toggle
|
||||||
focus output <<left|right|down|up>|output>
|
focus output left|right|up|down|<output>
|
||||||
move <left|right|down|up> [<px> px]
|
----------------------------------------------
|
||||||
move [absolute] position [[<px> px] [<px> px]|center]
|
|
||||||
-----------------------------------
|
|
||||||
|
|
||||||
Note that the amount of pixels you can specify for the +move+ command is only
|
|
||||||
relevant for floating containers. The default amount is 10 pixels.
|
|
||||||
|
|
||||||
*Examples*:
|
*Examples*:
|
||||||
----------------------
|
-------------------------------------------------
|
||||||
# Focus container on the left, bottom, top, right:
|
# Focus container on the left, bottom, top, right
|
||||||
bindsym $mod+j focus left
|
bindsym $mod+j focus left
|
||||||
bindsym $mod+k focus down
|
bindsym $mod+k focus down
|
||||||
bindsym $mod+l focus up
|
bindsym $mod+l focus up
|
||||||
|
@ -1692,8 +1687,33 @@ bindsym $mod+x focus output right
|
||||||
|
|
||||||
# Focus the big output
|
# Focus the big output
|
||||||
bindsym $mod+x focus output HDMI-2
|
bindsym $mod+x focus output HDMI-2
|
||||||
|
-------------------------------------------------
|
||||||
|
|
||||||
# Move container to the left, bottom, top, right:
|
=== Moving containers
|
||||||
|
|
||||||
|
Use the +move+ command to move a container.
|
||||||
|
|
||||||
|
*Syntax*:
|
||||||
|
-----------------------------------------------------
|
||||||
|
# Moves the container into the given direction.
|
||||||
|
# The optional pixel argument specifies how far the
|
||||||
|
# container should be moved if it is floating and
|
||||||
|
# defaults to 10 pixels.
|
||||||
|
move <left|right|down|up> [<px> px]
|
||||||
|
|
||||||
|
# Moves the container either to a specific location
|
||||||
|
# or to the center of the screen. If 'absolute' is
|
||||||
|
# used, it is moved to the center of all outputs.
|
||||||
|
move [absolute] position [[<px> px] [<px> px]|center]
|
||||||
|
|
||||||
|
# Moves the container to the current position of the
|
||||||
|
# mouse cursor. Only affects floating containers.
|
||||||
|
move position mouse
|
||||||
|
-----------------------------------------------------
|
||||||
|
|
||||||
|
*Examples*:
|
||||||
|
-------------------------------------------------------
|
||||||
|
# Move container to the left, bottom, top, right
|
||||||
bindsym $mod+j move left
|
bindsym $mod+j move left
|
||||||
bindsym $mod+k move down
|
bindsym $mod+k move down
|
||||||
bindsym $mod+l move up
|
bindsym $mod+l move up
|
||||||
|
@ -1703,10 +1723,12 @@ bindsym $mod+semicolon move right
|
||||||
# move more than the default
|
# move more than the default
|
||||||
bindsym $mod+j move left 20 px
|
bindsym $mod+j move left 20 px
|
||||||
|
|
||||||
# Move floating container to the center
|
# Move floating container to the center of all outputs
|
||||||
# of all outputs
|
|
||||||
bindsym $mod+c move absolute position center
|
bindsym $mod+c move absolute position center
|
||||||
----------------------
|
|
||||||
|
# Move container to the current position of the cursor
|
||||||
|
bindsym $mod+m move position mouse
|
||||||
|
-------------------------------------------------------
|
||||||
|
|
||||||
=== Changing (named) workspaces/moving to workspaces
|
=== Changing (named) workspaces/moving to workspaces
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue