The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Switch all windows from two workspaces

asked 2015-10-16 14:36:38 +0000

fawind gravatar image

updated 2015-10-16 14:37:16 +0000

I want to switch all windows from the current workspace with the windows on a given workspace. For example all windows from the current workspace should be moved to workspace 2 and all windows from workspace 2 should be moved to the current workspace.

How can I approach that? Is there a method for referencing all windows and containers on a given workspace?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-10-16 15:07:35 +0000

i3convert gravatar image

You can use the rename workspace command (see its description in the i3 User's Guide). Say, you want to swap workspaces 1 and 2. If "temporary" is an unused workspace name, you can issue the following command from the command line:

i3-msg "rename workspace 1 to temporary; rename workspace 2 to 1; rename workspace temporary to 2"

You can of course write a script for this or even create a key binding if you do this often.

edit flag offensive delete link more
0

answered 2015-10-16 15:04:54 +0000

Airblader gravatar image

Just rename both workspaces, that way the layout will stay the same, too.

edit flag offensive delete link more
-2

answered 2015-10-16 14:48:48 +0000

Shift+Mode+Workspace_number

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-10-16 14:36:38 +0000

Seen: 82 times

Last updated: Oct 16