KevinSilvester / wezterm-config

My WezTerm Config
MIT License
434 stars 127 forks source link

How to set my own background image? #17

Closed touero closed 6 months ago

touero commented 6 months ago

I tried to delete all png images in backdrops, and then put my own images into them, but it didn't work. I would like to ask if there are any requirements for image format, name, etc.

touero commented 6 months ago

Also, if I want to customize the theme based on this, how can I do it?

KevinSilvester commented 6 months ago

The only requirement for the images should be image file type. (List of supported file types according to the docs).

Could you try checking if the images can be loaded if the file path is manually set in config/appearance.lua Try changing line 17 to something like this source = { File = wezterm.config_dir .. '/backdrops/IMAGE_FILE.png' }, https://github.com/KevinSilvester/wezterm-config/blob/e45e04718bed472070c83cd5bd221b612a56910d/config/appearance.lua#L15-L19

This is just to check if the images are renderable by WezTerm.

KevinSilvester commented 6 months ago

As for theme generator, that might bit tricky 😅.

The only way I see that working is by

It's a bit convoluted but that's the only way I see that working.

The hardest part would probably be finding/making an image-scanning cli program that can output the colors in a usable and consistent format.

You'd also have a noticeable delay every time WezTerm starts up if it has to sample images to generate a new colorscheme before starting up.

touero commented 6 months ago

thanks