Kitty: Default layout

Created on 6 Jan 2020  路  5Comments  路  Source: kovidgoyal/kitty

I might have overlooked that, but is there a way to define a default layout?

My working session with Kitty usually starts with switching to the tall layout by pressing Ctrl+Shift+l. I believe, there should be a better way.

Maybe there's a way to map a keystroke that will open a new window in a certain layout as an alternative solution?

Anyways, thank you for building Kitty! It's a very worthwhile terminal replacement 馃憤

Most helpful comment

The first layout listed in enabled_layouts in kitty.conf will be the
default. And you can use the combine operator to create a new window and
change its layout with a single keystroke.

All 5 comments

I think you can use https://sw.kovidgoyal.net/kitty/conf.html#opt-kitty.enabled_layouts and specify the tall layout first.

The first layout listed in enabled_layouts in kitty.conf will be the
default. And you can use the combine operator to create a new window and
change its layout with a single keystroke.

Hey guys,

Thank you very much for your help! I've clearly read documentation not attentive enough :sweat_smile:

Although I'm a bit confused now as Ctrl+Shift+l with default configuration and specifying enabled_layouts in the configuration explicitly result in different behaviour.

This is five windows opened after I've pressed Ctrl+Shift+l once to switch to the tall layout with the default configuration (enabled_layouts commented out):

Screen Shot 2020-01-07 at 10 21 01

This is five windows opened with enabled_layouts set to tall,fat,grid,horizontal,vertical,stack in the configuration file explicitly:

Screen Shot 2020-01-07 at 10 22 01

Here are the screencasts for better illustration:

The former behavior seems to be more intelligent to me and I'm trying to configure my Kitty to behave exactly this way (so I don't have to press Ctrl+Shift+l every time I start it).

Maybe I misunderstand what Ctrl+Shift+l does, but it feels like with no enabled layouts specified Kitty tries to open a new window in the most optimal way having just fat layout as the first option.

My environment is macOS 10.15.2, kitty 0.15.1 (Homebrew).

The default configuration is ['fat', 'grid', 'horizontal', 'stack', 'tall', 'vertical'] pressing ctrl+l once is getting you grid layout not tall layout. In the second screenshot, you are in tall layout. Whatever layout you put in enabled_layouts fist will be the layout kitty starts with. I think you are misunderstanding what each layout does. I suggest you put only a singlelayout in enabled layouts and familiarise yourself with what they look like.

Hey,

Thanks a lot for taking a moment to clarify this for me! I really appreciate it :)

I had false assumptions I was coming from! Now it's perfectly clear and Kitty behaves exactly the way I want it to behave 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bewzaalex picture bewzaalex  路  3Comments

skosch picture skosch  路  3Comments

atomsymbol picture atomsymbol  路  3Comments

reed-jones picture reed-jones  路  4Comments

drandreaskrueger picture drandreaskrueger  路  4Comments