The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

How can I move a workspace?

asked 2012-06-09 12:28:07 +0000

Is there any way (command) to move the entire workspace? Let's say, all windows in workspace 1 to workspace 2, as they are (size, etc). I caught myself doing this manually (moving window by window) a couple of times, so I decided to ask.


edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2012-06-09 12:38:18 +0000

Tucos gravatar image

The closes you can get is renaming the workspace with rename workspace <old_name> to <new_name> (see userguide: renaming workspaces). This is equivalent to moving everything there if the workspace doesn't exist yet, but otherwise you can focus parent a bunch of times and move that container.

edit flag offensive delete link more


Thanks. This is close, but unfortunately we can not define to which workspace I want to move on the fly, right? By putting this on config, I get stuck with this biding-action.

bruno.braga gravatar imagebruno.braga ( 2012-06-09 15:53:11 +0000 )edit

Hm. normally i3-input can be used for dynamic input, but it's limited to 1 value and there's no magic names for <old_name> such as 'current', which means it's not possible to use i3-input in this case… guess you'll have to stick to focus parent + move

Tucos gravatar imageTucos ( 2012-06-09 20:06:18 +0000 )edit

joepd answer looks promising, but I couldnt get it to work... can you?

bruno.braga gravatar imagebruno.braga ( 2012-06-10 09:28:21 +0000 )edit

For me, it works as of Version 4.4, also with unstacked/untabbed containers (it might have worked earlier).

joepd gravatar imagejoepd ( 2013-01-08 22:54:04 +0000 )edit

Yep! Worked well!

bruno.braga gravatar imagebruno.braga ( 2013-01-18 03:48:13 +0000 )edit

answered 2012-06-09 13:47:26 +0000

joepd gravatar image

I do it like this:

Select the master container of the workspace by pressing $mod+a a few times.

Then throw in your move command. The whole lay-out is replicated on the new workspace :)

edit flag offensive delete link more


Wow, I think this is where I want to go!!! But, after selecting it all, hitting mod+Shift+{new workspace} does nothing... could that be a different command, or an extra setting in config file?

bruno.braga gravatar imagebruno.braga ( 2012-06-09 15:54:29 +0000 )edit

Turns out that you cannot move an entire workspace that way, so you'll have to somehow script your way around rename after all (unless you use workspace_layout stacked or so).<secure> that’s just a limitation in the code (and the debug log says so)

Tucos gravatar imageTucos ( 2012-06-10 10:50:31 +0000 )edit

Thanks for looking into it!

bruno.braga gravatar imagebruno.braga ( 2012-06-10 11:21:17 +0000 )edit

Apparently i just use this occasionally when the main container is tabbed or stacked. So, a hacky solution is this. Focus the main container with $mod+a, create a new xterm or whatever next to it, make this layout tabbed. Now you can throw the container around to another workspace.

joepd gravatar imagejoepd ( 2012-06-10 12:07:44 +0000 )edit

Question Tools


Asked: 2012-06-09 12:28:07 +0000

Seen: 976 times

Last updated: Jun 09 '12