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

Creating empty container with a specific layout

asked 2013-08-21 14:25:00 +0000

inxi gravatar image

I'd like to create an empty container that acts like an empty workspace so that I can set the layout before opening an application within it.

If I start with an empty workspace (say $mod+8), I can press $mod+w to make it tabbed before opening applications within it. Then, any applications I open will open in a tabbed-layout container.

I can't figure out how to do the same when I'm not in an empty workspace. I have to split the workspace (i.e., $mod+h), open an application, and then set the layout to tabbed ($mod+w).

In the end, I'd like to be able to bind this action -- create an empty container with tabbed layout -- to a key.

Is this (or will this be) possible?

edit retag flag offensive close merge delete

Comments

Having empty workspaces violates i3's concept, so I doubt that will ever be possible. Would assigning a default layout per workspace help you? There's a script for that.

airblader gravatar imageairblader ( 2015-04-21 04:46:26 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-20 20:26:27 +0000

peterN gravatar image

updated 2015-04-20 20:28:48 +0000

you can save and restore layouts of workspaces as documented on http://i3wm.org/docs/layout-saving.html. This includes setting the layout (tabbed, splitv, splith, ...). Until now I have only used this when assigning the slots to specific applications (the swallow part). Not sure on how it works out in a generic way.

you can also set the default layout mode for new containers like so: https://i3wm.org/docs/userguide.html#layoutmodefornew_containers however, this is probably a global setting that can't be changed per workspace

both pointers should give you some help

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-08-21 14:25:00 +0000

Seen: 811 times

Last updated: Apr 20