The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
0

I3-save-layout doesn't work as expected. Json file is empty!

asked 2014-12-13 08:03:05 +0000

Unknownentity gravatar image

updated 2014-12-14 12:27:57 +0000

Adaephon gravatar image

I'm using I3 4.8, have installed the perl modules AnyEvent::i3, JSON::XS and AnyEvent::Handle, along with i3-save-layout.

When I run the command

i3-save-tree --workspace 2: Ranger/NCMPCPP > .i3/ws2.2.json

the resulting file contains just one line:

// vim:ts=4:sw=4:et

When it should actually be containing the layout. Is this a bug, and why does it happen? Or is it something else, related to dependencies?

Would really appreciate some input on this. Seems to be a neat and useful feature.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-12-13 09:56:29 +0000

xaos52 gravatar image

updated 2014-12-14 12:29:53 +0000

Adaephon gravatar image

"2: Ranger/NCMPCPP" probably needs quoting, to make it a single argument. As it is the shell splits it into 2 arguments. (untested)

i3-save-tree --workspace '2: Ranger/NCMPCPP' > .i3/ws2.2.json
edit flag offensive delete link more

Comments

I feel like such an idiot. Never crossed my mind. Works perfectly. Thank you!

Unknownentity gravatar imageUnknownentity ( 2014-12-15 07:48:28 +0000 )edit

Question Tools

Stats

Asked: 2014-12-13 08:03:05 +0000

Seen: 434 times

Last updated: Dec 14 '14