Skip to content

Color scheme support #2083

@gerion0

Description

@gerion0

Is it possible to switch between color schemes in Kitty with a hotkey?
What I have seen is that it is possible to specify a bunch a colors in the config files. However, for a color scheme you have to specify all colors at once so one single hotkey to toggle between schemes seems not to be possible.

I'd like to use this mainly for this purposes:

  • Use a black background with fitting colors as default.
  • Switch to a light scheme, when using the laptop outdoors or in the sun.
  • Switch to a light scheme, when presenting something with the terminal.

As a proposal it may be possible to implement profile support. Konsole has that and (as a more terminal oriented program) mpv, too. It also can be used for more scenarios than color schemes.

Adapting the mpv syntax to kitty in can look like the following:

some_option 1.0
some_other_option 300
profile dark

[dark]
background_color black
color0 ...
color1 ...

[bright]
background_color white
color0 ...
color1 ...

Switching then is possible by calling kitty --profile bright or specifying a hotkey that changes the profile option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions