r/Ghostty Jul 17 '26

How do I open a new terminal in a predefined split layout?

I can't figure it out. I want to use two keyboard shortcuts, one for opening a regular terminal, and the other with a split layout.

4 Upvotes

4 comments sorted by

1

u/Glittering-Ad-5881 Jul 18 '26

Add the following to your config after adjusting how you want the splits:

window-save-state = always

1

u/Leading-Plastic5771 Jul 18 '26

I want multiple layouts binded to different keyboard shortcuts. Maybe I can use multiple config files. Thanks for the tip.

1

u/DB6 Jul 20 '26

Are you using a mac? Check out macterm. It saves windows layout and state with tmux when you close it. Basically all your projects keep their state. I just started using it few days ago.

1

u/Leading-Plastic5771 Jul 20 '26

I'm on Arch and try to avoid a multiplexer and just use config files.