]> git.sur5r.net Git - i3/i3/commitdiff
Merge pull request #2771 from hwangcc23/fix-2764
authorIngo Bürk <admin@airblader.de>
Tue, 16 May 2017 16:39:37 +0000 (18:39 +0200)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 16:39:37 +0000 (18:39 +0200)
Support to get the primary output

1  2 
docs/userguide

diff --combined docs/userguide
index 4eb8c7f59c36b39370de49f6aa8b963bde030d81,985ce09b0d8660c2cf7b16ffd0088693f97512ea..0d5de3b9056c86eff0e483124825d27192588e6e
@@@ -1922,7 -1922,7 +1922,7 @@@ output:
  ----------------------------------------------
  focus left|right|down|up
  focus parent|child|floating|tiling|mode_toggle
- focus output left|right|up|down|<output>
+ focus output left|right|up|down|primary|<output>
  ----------------------------------------------
  
  *Examples*:
@@@ -1944,8 -1944,17 +1944,17 @@@ bindsym $mod+x focus output righ
  
  # Focus the big output
  bindsym $mod+x focus output HDMI-2
+ # Focus the primary output
+ bindsym $mod+x focus output primary
  -------------------------------------------------
  
+ -------------------------------
+ Note that you might not have a primary output configured yet. To do so, run:
+ -------------------------
+ xrandr --output <output> --primary
+ -------------------------
  === Moving containers
  
  Use the +move+ command to move a container.
@@@ -1988,39 -1997,6 +1997,39 @@@ bindsym $mod+c move absolute position c
  bindsym $mod+m move position mouse
  -------------------------------------------------------
  
 +=== Swapping containers
 +
 +Two containers can be swapped (i.e., move to each other's position) by using
 +the +swap+ command. They will assume the position and geometry of the container
 +they are swapped with.
 +
 +The first container to participate in the swapping can be selected through the
 +normal command criteria process with the focused window being the usual
 +fallback if no criteria are specified. The second container can be selected
 +using one of the following methods:
 +
 ++id+:: The X11 window ID of a client window.
 ++con_id+:: The i3 container ID of a container.
 ++mark+:: A container with the specified mark, see <<vim_like_marks>>.
 +
 +Note that swapping does not work with all containers. Most notably, swapping
 +floating containers or containers that have a parent-child relationship to one
 +another does not work.
 +
 +*Syntax*:
 +----------------------------------------
 +swap container with id|con_id|mark <arg>
 +----------------------------------------
 +
 +*Examples*:
 +-----------------------------------------------------------------
 +# Swaps the focused container with the container marked »swapee«.
 +swap container with mark swapee
 +
 +# Swaps container marked »A« and »B«
 +[con_mark="^A$"] swap container with mark B
 +-----------------------------------------------------------------
 +
  === Sticky floating windows
  
  If you want a window to stick to the glass, i.e., have it stay on screen even
@@@ -2195,8 -2171,8 +2204,8 @@@ To move a container to another RandR ou
  
  *Syntax*:
  ------------------------------------------------------------
- move container to output left|right|down|up|current|<output>
- move workspace to output left|right|down|up|current|<output>
+ move container to output left|right|down|up|current|primary|<output>
+ move workspace to output left|right|down|up|current|primary|<output>
  ------------------------------------------------------------
  
  *Examples*:
@@@ -2207,8 -2183,17 +2216,17 @@@ bindsym $mod+x move workspace to outpu
  
  # Put this window on the presentation output.
  bindsym $mod+x move container to output VGA1
+ # Put this window on the primary output.
+ bindsym $mod+x move container to output primary
  --------------------------------------------------------
  
+ -------------------------------
+ Note that you might not have a primary output configured yet. To do so, run:
+ -------------------------
+ xrandr --output <output> --primary
+ -------------------------
  === Moving containers/windows to marks
  
  To move a container to another container with a specific mark (see <<vim_like_marks>>),