feat(foot): Catppuccin -> Rose Pine

This commit is contained in:
punkfairie 2024-10-19 20:38:50 -07:00
parent ac3a0ba204
commit 127d492d5a
Signed by: punkfairie
GPG key ID: 01823C057725C266
2 changed files with 20 additions and 13 deletions

View file

@ -112,13 +112,13 @@
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "catppuccin",
"owner": "EuCaue",
"repo": "foot"
},
"branch": "main",
"revision": "17e2bdc8a8d854e8d390919579f87ab7d5f86e38",
"url": "https://github.com/catppuccin/foot/archive/17e2bdc8a8d854e8d390919579f87ab7d5f86e38.tar.gz",
"hash": "145icc622jf5j9sb4d5phclh47s6n6zi9c906p3n935q2yycg7rg"
"revision": "a4504926bf7aa748479adf4103d721aec7b735c5",
"url": "https://github.com/EuCaue/foot/archive/a4504926bf7aa748479adf4103d721aec7b735c5.tar.gz",
"hash": "1a4854csxs4x5hjmz2k5zr68qmxi117bgq90yd62kz6v4lbn8jqa"
},
"fuzzel": {
"type": "Git",

View file

@ -1,14 +1,21 @@
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.foot.catppuccin;
enable = cfg.enable && config.programs.foot.enable;
in
{
options.programs.foot.catppuccin = lib.ctp.mkCatppuccinOpt { name = "foot"; };
config,
lib,
...
}: let
inherit (config.rose-pine) sources;
cfg = config.programs.foot.rose-pine;
enable = cfg.enable && config.programs.foot.enable;
themeName =
if (cfg.flavor == "main")
then "rose-pine"
else "rose-pine-${cfg.flavor}";
in {
options.programs.foot.rose-pine = lib.rp.mkRosePineOpt {name = "foot";};
config.programs.foot = lib.mkIf enable {
settings.main.include = sources.foot + "/themes/catppuccin-${cfg.flavor}.ini";
settings.main.include = sources.foot + "/${themeName}.ini";
};
}