Add a new command 'move to workspace current'
Added a new command 'move to workspace current' which can be used with criteria to move a window to the current workspace.
This commit is contained in:
committed by
Michael Stapelberg
parent
51173baf28
commit
2afecaf355
@ -1293,8 +1293,9 @@ You can also switch to the next and previous workspace with the commands
|
||||
workspace 1, 3, 4 and 9 and you want to cycle through them with a single key
|
||||
combination. To restrict those to the current output, use +workspace
|
||||
next_on_output+ and +workspace prev_on_output+. Similarly, you can use +move
|
||||
container to workspace next+ and +move container to workspace prev+ to move a
|
||||
container to the next/previous workspace.
|
||||
container to workspace next+, +move container to workspace prev+ to move a
|
||||
container to the next/previous workspace and +move container to workspace current+
|
||||
(the last one makes sense only when used with criteria).
|
||||
|
||||
[[back_and_forth]]
|
||||
To switch back to the previously focused workspace, use +workspace
|
||||
@ -1310,6 +1311,18 @@ you can use the +move workspace to output+ command followed by the name of the
|
||||
target output. You may also use +left+, +right+, +up+, +down+ instead of the
|
||||
xrandr output name to move to the next output in the specified direction.
|
||||
|
||||
*Syntax*:
|
||||
-----------------------------------
|
||||
workspace <next|prev|next_on_output|prev_on_output>
|
||||
workspace back_and_forth
|
||||
workspace <name>
|
||||
workspace number <number>
|
||||
|
||||
move [window|container] [to] workspace <name>
|
||||
move [window|container] [to] workspace number <number>
|
||||
move [window|container] [to] workspace <prev|next|current>
|
||||
-----------------------------------
|
||||
|
||||
*Examples*:
|
||||
-------------------------
|
||||
bindsym mod+1 workspace 1
|
||||
@ -1325,6 +1338,9 @@ bindsym mod+b workspace back_and_forth
|
||||
|
||||
# move the whole workspace to the next output
|
||||
bindsym mod+x move workspace to output right
|
||||
|
||||
# move firefox to current workspace
|
||||
bindsym mod+F1 [class="Firefox"] move workspace current
|
||||
-------------------------
|
||||
|
||||
==== Named workspaces
|
||||
|
Reference in New Issue
Block a user