this implements both the "move container to workspace back_and_forth" command
and movements to the same workspace when auto_back_and_forth is set.

it includes documentation and test suite additions by michael.

it also simplifies the workspace_show_by_name function (making use of
workspace_get accepting NULL pointers).
This commit is contained in:
chrysn
2012-09-04 10:51:18 +02:00
committed by Michael Stapelberg
parent a01bac13fe
commit e15e37f922
7 changed files with 133 additions and 3 deletions

View File

@ -1395,7 +1395,8 @@ RandR output.
[[back_and_forth]]
To switch back to the previously focused workspace, use +workspace
back_and_forth+.
back_and_forth+; likewise, you can move containers to the previously focused
workspace using +move container to workspace back_and_forth+.
*Syntax*:
-----------------------------------
@ -1421,6 +1422,7 @@ bindsym mod+Shift+2 move container to workspace 2
# switch between the current and the previously focused one
bindsym mod+b workspace back_and_forth
bindsym mod+Shift+b move container to workspace back_and_forth
# move the whole workspace to the next output
bindsym mod+x move workspace to output right