Skip to content
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

base16 with gtk theme #14

Open
Steven-S1020 opened this issue Aug 15, 2024 · 1 comment
Open

base16 with gtk theme #14

Steven-S1020 opened this issue Aug 15, 2024 · 1 comment

Comments

@Steven-S1020
Copy link

Hi,
I don't know if this has been done yet but I want to connect your base16 with my gtk theme. I see 'tinted-theming/base16-gtk-flatcolor' is a template, and I have tried using that, and either it needs to be done a special way, or it's not possible at this time. Below I will paste my theming.nix for reference. Any help or examples would be greatly appreciated.
Thanks!

theming.nix

{ config, pkgs, inputs, ...}:

{
  home-manager.users.steven = {

  
    # Theme 'alacritty'
    programs.alacritty.settings.colors = 
      with config.scheme.withHashtag; let default = {
        black = base00; white = base05;
        inherit red green yellow blue cyan magenta;  
      };
    in {
      primary = { background = base00; foreground = base05; };
      cursor = { text = base02; cursor = base07; };
      normal = default; bright = default; dim = default;
    };

    # Theme 'neovim'
    programs.neovim = {
      plugins = [ (pkgs.vimPlugins.base16-vim.overrideAttrs (old:
        let schemeFile = config.scheme inputs.base16-vim;
        in { patchPhase = "cp ${schemeFile} colors/base16-scheme.vim"; }
      ))];
      extraConfig = "
        set termguicolors background=dark
        let base16colorspace=256
        colorscheme base16-scheme
      ";  
    };

    # Theme 'gtk'
    gtk = builtins.readFile (config.scheme {
      templateRepo = inputs.base16-gtk; target = "gtk-3";
    });
  };
}
@SenchoPens
Copy link
Owner

Hi, sorry for replying late, I'm currently pretty busy. I haven't themed GTK myself. Have you checked out danth/stylix? It uses base16.nix under the hood and you can use your base16.nix scheme to theme GTK through it.

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