Skip to content

wezterm color scheme not apply #527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
phucleeuwu opened this issue Mar 30, 2025 · 5 comments
Open

wezterm color scheme not apply #527

phucleeuwu opened this issue Mar 30, 2025 · 5 comments

Comments

@phucleeuwu
Copy link

Here is my config:

  catppuccin = {
    wezterm.enable = true;
    enable = true;
    flavor = "mocha";
    accent = "peach";
  };
@isabelroses
Copy link
Member

Wezterm also has the catppuccin.wezterm.apply option due to the somewhat strange API it provides.

@phucleeuwu
Copy link
Author

phucleeuwu commented Mar 30, 2025

Wezterm also has the catppuccin.wezterm.apply option due to the somewhat strange API it provides.

why not combine .apply and .enable, or enable .apply by default. I enable both and still not work:

Image

My home-manager configuration:

_: {
  catppuccin = {
    wezterm.apply = true;
    enable = true;
    flavor = "mocha";
    accent = "peach";
  };

  programs.wezterm = {
    enable = true;
    enableZshIntegration = true;
    # enableFishIntegration = true;
    # enableNushellIntegration = true;
    extraConfig = ''
      local wezterm = require 'wezterm'
      local config = {}
      config.font = wezterm.font 'Maple Mono NF'
      config.font_size = 19
      config.window_decorations = "RESIZE"
      config.enable_tab_bar = false
      config.window_close_confirmation = 'NeverPrompt'
      return config
    '';
  };
}

@isabelroses
Copy link
Member

isabelroses commented Mar 31, 2025

why not combine .apply and .enable, or enable .apply by default. I enable both and still not work

Because the api is extremely weird. In your case its because of that which is why your noticing your error.

This should be what your config looks like with .apply.

extraConfig = ''
      local wezterm = require 'wezterm'
      config.font = wezterm.font 'Maple Mono NF'
      config.font_size = 19
      config.window_decorations = "RESIZE"
      config.enable_tab_bar = false
      config.window_close_confirmation = 'NeverPrompt'
      return config
    '';

@phucleeuwu
Copy link
Author

phucleeuwu commented Mar 31, 2025

Because the api is extremely weird. In your case its because of that which is why your noticing your error.

that weird, maybe we should switch to manual colorSchemes

@isabelroses
Copy link
Member

isabelroses commented Apr 1, 2025

Because the api is extremely weird. In your case its because of that which is why your noticing your error.

that weird, maybe we should switch to manual colorSchemes

We do currently do that, see

colorSchemes."catppuccin-${cfg.flavor}" = lib.importTOML "${sources.wezterm}/dist/catppuccin-${cfg.flavor}.toml";

But we also apply the lua file since it adds other modifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants