aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2023-01-22 18:33:23 +0100
committerOrestis Floros <orestisflo@gmail.com>2023-01-22 18:33:23 +0100
commitc52f13900df5da04d86809abbfe25178a4bbe305 (patch)
tree7e29c41cf6c7f8250f0533f5042a7961b7f09d7c /docs
parent8d64937054d625f140dd5073b00f2c726253f051 (diff)
downloadi3-c52f13900df5da04d86809abbfe25178a4bbe305.tar.gz
i3-c52f13900df5da04d86809abbfe25178a4bbe305.zip
Add focus workspace command
Diffstat (limited to 'docs')
-rw-r--r--docs/userguide10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/userguide b/docs/userguide
index 120e4b90..7fe0b9af 100644
--- a/docs/userguide
+++ b/docs/userguide
@@ -2397,6 +2397,9 @@ available:
<criteria>::
Sets focus to the container that matches the specified criteria.
See <<command_criteria>>.
+workspace::
+ Sets focus to the workspace that contains the container that matches the
+ specified criteria.
left|right|up|down::
Sets focus to the nearest container in the given direction.
parent::
@@ -2423,6 +2426,7 @@ output::
*Syntax*:
----------------------------------------------
<criteria> focus
+<criteria> focus workspace
focus left|right|down|up
focus parent|child|floating|tiling|mode_toggle
focus next|prev [sibling]
@@ -2434,6 +2438,10 @@ focus output left|right|down|up|current|primary|nonprimary|next|<output1> [outpu
# Focus firefox
bindsym $mod+F1 [class="Firefox"] focus
+# Focus the workspace where firefox is, without necessarily focusing firefox
+# itself.
+bindsym $mod+x [class="Firefox"] focus workspace
+
# Focus container on the left, bottom, top, right
bindsym $mod+j focus left
bindsym $mod+k focus down
@@ -2462,7 +2470,7 @@ bindsym $mod+x focus output primary
bindsym $mod+x focus output nonprimary
# Cycle focus between outputs VGA1 and LVDS1 but not DVI0
-bindsym $mod+x move workspace to output VGA1 LVDS1
+bindsym $mod+x focus output VGA1 LVDS1
-------------------------------------------------
Note that you might not have a primary output configured yet. To do so, run: