Skip to content

Setting the current surface's theme #3457

Closed Answered by 00-kat
devshane asked this question in Feature Requests, Ideas
Discussion options

You must be logged in to vote

There's an escape sequence to set the theme (OSC 4, 5, 6, 10-19, 104, 105, 106, 110-119, and there's also Kitty's extension which Ghostty also supports. I recommend using Kitty's extension as it's easier to use edit: use the former), which you could probably use as a workaround in your shell configuration or something. But as Bruce said, this is a duplicate of #2353.

As an example:

printf '\e]10;#FFFFFF\a'
printf '\e]11;#000000\a'
printf '\e]4;3=#5F5E2A;6=#227685\a'

Which can also be sent in a single printf:

printf '\e]10;#FFFFFF\a\e]11;#000000\a\e]4;3=#5F5E2A;6=#227685\a'

It is equivalent to the following configuration in the Ghostty config format is:

foreground = #FFFFFF
background = #0…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jscheel
Comment options

@rhodes-b
Comment options

Comment options

You must be logged in to vote
3 replies
@devshane
Comment options

@00-kat
Comment options

@00-kat
Comment options

Answer selected by pluiedev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants