Skip to content

Commit

Permalink
feat(home-manager): update yazi for accent support
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Oct 27, 2024
1 parent f99984a commit 8f5b516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .sources/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@
"repo": "yazi"
},
"branch": "main",
"revision": "37dec9bf1f7e52e0d593c225827b9dbc71ce504c",
"url": "https://github.com/catppuccin/yazi/archive/37dec9bf1f7e52e0d593c225827b9dbc71ce504c.tar.gz",
"hash": "1dfakxd5fd1z17bf2l4a48wmal9pk9ybc0zxwnmvjaqj2gd3k6m0"
"revision": "54d868433a0c2f3e1651114136ea088eef72a4a7",
"url": "https://github.com/catppuccin/yazi/archive/54d868433a0c2f3e1651114136ea088eef72a4a7.tar.gz",
"hash": "08rml9np5qqvnqyrhhfj515mddfzqbxrxalscm5kswnj5mfx5ibl"
},
"zathura": {
"type": "Git",
Expand Down
6 changes: 4 additions & 2 deletions modules/home-manager/yazi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ let
enable = cfg.enable && config.programs.yazi.enable;
in
{
options.programs.yazi.catppuccin = lib.ctp.mkCatppuccinOpt { name = "yazi"; };
options.programs.yazi.catppuccin = lib.ctp.mkCatppuccinOpt { name = "yazi"; } // {
accent = lib.ctp.mkAccentOpt "yazi";
};

config = lib.mkIf enable {
programs.yazi.theme = lib.importTOML "${sources.yazi}/themes/${cfg.flavor}.toml";
programs.yazi.theme = lib.importTOML "${sources.yazi}/themes/${cfg.flavor}/catppuccin-${cfg.flavor}-${cfg.accent}.toml";
xdg.configFile."yazi/Catppuccin-${cfg.flavor}.tmTheme".source = "${sources.bat}/themes/Catppuccin ${lib.ctp.mkUpper cfg.flavor}.tmTheme";
};
}

0 comments on commit 8f5b516

Please sign in to comment.