Konsole: Documentation for the layout file in JSON format?

I am trying to create a layout for Konsole much in the same way as what I have for Terminator:

A JSON file with the different splits and more importantly, the profiles and commands that are going to be used.

I have found some blog entries on how to do that using a bash script and bash script, with one invocation of Konsole per line, adding the commands and profiles as arguments; using the -e command and –profile options.

When you save a layout, however, it is saved in a JSON file. This, unfortunately, only saves the layout geometry. Any command or profile information is not saved.

What I would like to do is to be able to edit that JSON file in order to launch a Konsole session with the desired geometry, logged in to my remote machine and eventually launching an emacs-client (I have an emacs-server running on the remote host).

Is there any documentation somewhere? I have sought in a few forums, including Stackoverflow & friends and Reddit with no luck whatsover.

Any help wold be appreciated.

:wink:

1 Like

Hi - I haven’t seen a documented solution of the type you’re describing. There was this blog post from @traceyc earlier this year : Konsole Layout Automation (part 1) - KDE Blogs

That mentioned a Part 2 to come that would go into how split panes could be manipulated similarly - so, on top of whatever folks here can find, it might be worth keeping an eye on that blog space for possible future posts (I follow blogs.kde.org and planet.kde.org in my RSS reader :slight_smile: )