You are not logged in.

#1 2014-12-04 17:29:53

tzoi516
Member
Registered: 2014-05-02
Posts: 76

[SOLVED] Saving i3 Layout

I'm trying to save this layout and restore it when I open i3:

1417713656.jpg

Here's the .json that gets saved:

http://pastebin.com/SeBi3yEz

Regardless of what I change all floating windows are tiled horizontally. If I change window settings in ~/.i3/config to default as float then all windows move to the center of the screen and overlap each other. Any thoughts? Thanks.

Last edited by tzoi516 (2014-12-05 18:39:29)

Offline

#2 2014-12-04 18:28:10

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED] Saving i3 Layout

i3-save-tree does not save any information about floating window geometry, at least not position or state to my knowledge.

If I change window settings in ~/.i3/config to default as float then all windows move to the center of the screen and overlap each other. Any thoughts?

Don't use i3 as a floating window manager. For all practical purposes, floating windows are not supported in i3. The ability to float windows is just a necessary concession in the devs' eyes.

Last edited by ANOKNUSA (2014-12-04 18:29:48)

Offline

#3 2014-12-04 18:30:27

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] Saving i3 Layout

Thanks for the reply. I only mentioned the floating option just in case someone asks, plus it sounded like something to try when all of the windows open the same - horizontally.

Offline

#4 2014-12-04 19:39:27

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] Saving i3 Layout

@tzoi516, I pasted my layout http://pastebin.com/5Dvd1pkY
That's  a working one.

Edit; now it's the right one

Last edited by qinohe (2014-12-04 20:38:19)

Offline

#5 2014-12-04 21:55:37

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] Saving i3 Layout

Thanks for sharing your .json file. I'm still getting the same results. Here's my i3 config:

http://pastebin.com/YHUjVTff

Besides the missing i3-msg line, is your different? Thanks.

Offline

#6 2014-12-04 23:24:05

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] Saving i3 Layout

Sure, I think no one has the same config file..
But, there is something I miss..
Add this and try again :

workspace_layout default.

When you make the json workspace file, you need to make the split yourself, so use split h or split v, hope this makes sense.

Offline

#7 2014-12-04 23:45:12

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] Saving i3 Layout

qinohe wrote:

When you make the json workspace file, you need to make the split yourself, so use split h or split v, hope this makes sense.

I really appreciate your replies.

Just to make sure I'm clear ... if I run geany then split h or v and then run the next term?

Offline

#8 2014-12-05 09:13:59

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] Saving i3 Layout

tzoi516 wrote:

Just to make sure I'm clear ... if I run geany then split h or v and then run the next term?

When you create the file yes, you need to make the split yourself, like ANOKNUSA said, don't use floating, and I add stacked and tabbed to it, you need to use default in this case #6

If starting X no, you don't need to split anything. You open the application by hand or automatic, and it will 'magically' appear in the created field.
At least if you also added some lines to open the app. on the right workspace.
If you don't have that and start the apps yourself, then you need to be on that workspace, otherwise geany will open on say workspace1, while the skeleton is on workspace2.

Offline

#9 2014-12-05 12:32:14

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] Saving i3 Layout

I understand that. This is the layout I want:

1417782411.jpg

This is what I'm getting:

1417782243.jpg

These are my config files:
i3: http://pastebin.com/7J9abjkF
main.json: http://pastebin.com/H0dJ9Szb

I'm starting to wonder if I'm missing an install, or another file.

Offline

#10 2014-12-05 15:18:07

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] Saving i3 Layout

At least, you need to take a closer look at the structure of your document, see; http://i3wm.org/docs/layout-saving.html … ayoutFiles.
The way you use 'instance' , 'class' & 'title', is not the way it supposed to be.
You can use my document too, for that purpose.
For the name I would use something like:

"name": "Mutt",

or nothing, leave it out.

Also, there is no

"layout": "splith",

only

"layout": "splitv",

What would explain your horizontal splits.

edit:
something like this

"class": "^URxvt$",
"instance": "^WeeChat",
"title": "^"

B.t.w.: you probably don't miss anything in your setup.

Last edited by qinohe (2014-12-05 15:32:33)

Offline

#11 2014-12-05 15:40:25

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] Saving i3 Layout

I really appreciate your feedback and help. This is my latest: http://pastebin.com/H0dJ9Szb

I found other .json examples with extra characters with screenshots that supposedly work.

Getting the same wrong layout. The splitv is on line 6. Going to try the geometry line.

Nevermind, I do have the geometry bits.

Last edited by tzoi516 (2014-12-05 15:42:33)

Offline

#12 2014-12-05 16:23:48

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] Saving i3 Layout

Are you using i3 from Arch repo or AUR?

Offline

#13 2014-12-05 16:37:12

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] Saving i3 Layout

Progress. I have the layout displaying, with the little icons in the middle of the panel. Now I just need to figure out getting the app into the right window.

Offline

#14 2014-12-05 16:38:05

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] Saving i3 Layout

[Community] I don't have much time left right now, but I will have a closer look at the whole 'party' after the weekend, have a nice one.
And... don't give up wink

If you want, have a look at my config, at https://github.com/qinohe/.i3, hope/maybe it gives you some clues.

Nice you have some working, I guess you will succeed.

Last edited by qinohe (2014-12-05 16:59:53)

Offline

#15 2014-12-05 18:39:02

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] Saving i3 Layout

qinohe, thanks for your help and guidance; I finally have a saved layout autoloading.

Offline

Board footer

Powered by FluxBB