feat(foot): Catppuccin -> Rose Pine
This commit is contained in:
parent
ac3a0ba204
commit
127d492d5a
2 changed files with 20 additions and 13 deletions
|
@ -112,13 +112,13 @@
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "GitHub",
|
"type": "GitHub",
|
||||||
"owner": "catppuccin",
|
"owner": "EuCaue",
|
||||||
"repo": "foot"
|
"repo": "foot"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"revision": "17e2bdc8a8d854e8d390919579f87ab7d5f86e38",
|
"revision": "a4504926bf7aa748479adf4103d721aec7b735c5",
|
||||||
"url": "https://github.com/catppuccin/foot/archive/17e2bdc8a8d854e8d390919579f87ab7d5f86e38.tar.gz",
|
"url": "https://github.com/EuCaue/foot/archive/a4504926bf7aa748479adf4103d721aec7b735c5.tar.gz",
|
||||||
"hash": "145icc622jf5j9sb4d5phclh47s6n6zi9c906p3n935q2yycg7rg"
|
"hash": "1a4854csxs4x5hjmz2k5zr68qmxi117bgq90yd62kz6v4lbn8jqa"
|
||||||
},
|
},
|
||||||
"fuzzel": {
|
"fuzzel": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
|
|
@ -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 {
|
config.programs.foot = lib.mkIf enable {
|
||||||
settings.main.include = sources.foot + "/themes/catppuccin-${cfg.flavor}.ini";
|
settings.main.include = sources.foot + "/${themeName}.ini";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue