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

Can I force creation of new workspaces for "move container to workspace next"?

asked 2015-01-04 02:09:44 +0000

anonymous user


The setup:

I have two containers open on workspace 1, and I'd like to send one to workspace 2. I can, of course, just "move container to workspace 2" -- but I want a relative command like "move container to workspace next", which works wherever I am.

The trouble is that if workspace 2 doesn't exist yet (i.e. is empty, has no content), it won't be created by "move container to workspace next". Is there a way to get around this behavior?

More generally, I wouldn't mind just showing a fixed number of workspaces all the time (say, 4 of them), with no special treatment for those that happen to be empty. Is there a way to accomplish this?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-04 03:10:14 +0000

lasers gravatar image (?)

edit flag offensive delete link more


Thanks! That's interesting and a good project to know about -- but I don't think it answers my question (unless I'm missing something). Quote from readme: "-n and -p will only jump to existing workspaces, and if you go beyond the beginning or end of the numbered workspace list, it will wrap".

bosh gravatar imagebosh ( 2015-01-04 05:21:55 +0000 )edit

From the docs.... Those who have configured i3 to display workspaces on specific monitors can use -E/--nextempty to go to the first empty workspace with a number higher than the workspace they are currently on. -- I believe you are looking for something like 'quickswitch -jE'

lasers gravatar imagelasers ( 2015-01-04 10:52:03 +0000 )edit

I appreciate the deep dive (and I'm now happily using, so thanks again for the pointer). But this still isn't quite what I'm asking about: I want the next workspace, regardless of whether it's empty. That is to say: create it if it doesn't exist, or use it if it does exist.

bosh gravatar imagebosh ( 2015-01-04 17:47:50 +0000 )edit

Question Tools


Asked: 2015-01-04 02:09:44 +0000

Seen: 2,484 times

Last updated: Jan 04