feat(rio): Catppuccin -> Rose Pine
This commit is contained in:
parent
5b93568483
commit
dc1c94c811
2 changed files with 28 additions and 10 deletions
|
@ -252,6 +252,18 @@
|
|||
"url": "https://github.com/catppuccin/rio/archive/6d93b3385a0f2ae586edc30aa64601d40ea382d5.tar.gz",
|
||||
"hash": "171pb62q1rzpr802yb93sj30vq3b3kiqlac8nva08rgjb94z5ipi"
|
||||
},
|
||||
"rio-terminal": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "rose-pine",
|
||||
"repo": "rio-terminal"
|
||||
},
|
||||
"branch": "main",
|
||||
"revision": "6c0422dc266bc4c85849c2cae9727a3f105c9285",
|
||||
"url": "https://github.com/rose-pine/rio-terminal/archive/6c0422dc266bc4c85849c2cae9727a3f105c9285.tar.gz",
|
||||
"hash": "0970n6gba1cwa5wcvmxvfb7bx3pdw2rqysxzcxqyzsvj7ykxgmsr"
|
||||
},
|
||||
"rofi": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
|
@ -1,15 +1,21 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib) ctp;
|
||||
inherit (config.catppuccin) sources;
|
||||
|
||||
cfg = config.programs.rio.catppuccin;
|
||||
enable = cfg.enable && config.programs.rio.enable;
|
||||
in
|
||||
{
|
||||
options.programs.rio.catppuccin = ctp.mkCatppuccinOpt { name = "rio"; };
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (config.rose-pine) sources;
|
||||
|
||||
cfg = config.programs.rio.rose-pine;
|
||||
enable = cfg.enable && config.programs.rio.enable;
|
||||
|
||||
themeName =
|
||||
if (cfg.flavor == "main")
|
||||
then "rose-pine"
|
||||
else "rose-pine-${cfg.flavor}";
|
||||
in {
|
||||
options.programs.rio.rose-pine = lib.rp.mkRosePineOpt {name = "rio";};
|
||||
|
||||
config = lib.mkIf enable {
|
||||
programs.rio.settings = lib.importTOML "${sources.rio}/themes/catppuccin-${cfg.flavor}.toml";
|
||||
programs.rio.settings = lib.importTOML "${sources.rio}/${themeName}.toml";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue