Compare commits
4 commits
aa407e12b5
...
cd2536b158
Author | SHA1 | Date | |
---|---|---|---|
cd2536b158 | |||
dabbef32d5 | |||
84bf107f49 | |||
c2d446f07d |
5 changed files with 45 additions and 37 deletions
|
@ -40,25 +40,25 @@
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "GitHub",
|
"type": "GitHub",
|
||||||
"owner": "rose-pine",
|
"owner": "catppuccin",
|
||||||
"repo": "btop"
|
"repo": "btop"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"revision": "6d6abdc0a8c8bcd3b056d9fe3256cfbe7e359312",
|
"revision": "21b8d5956a8b07fa52519e3267fb3a2d2e693d17",
|
||||||
"url": "https://github.com/rose-pine/btop/archive/6d6abdc0a8c8bcd3b056d9fe3256cfbe7e359312.tar.gz",
|
"url": "https://github.com/catppuccin/btop/archive/21b8d5956a8b07fa52519e3267fb3a2d2e693d17.tar.gz",
|
||||||
"hash": "15s3llr9snrg30fh39a2gfzmjd8p5ki8vaggznm9jirjzdhm0a5i"
|
"hash": "1hdh78314axpz96qvnl7dkgjd3b7sjq0l8k5h1iwir1mjz596xsi"
|
||||||
},
|
},
|
||||||
"cava": {
|
"cava": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "GitHub",
|
"type": "GitHub",
|
||||||
"owner": "rose-pine",
|
"owner": "catppuccin",
|
||||||
"repo": "cava"
|
"repo": "cava"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"revision": "f9a915563d281d4a58e6f9fe701bdb769f1bbf26",
|
"revision": "0746f77974330338ee2e1e4d1ef9872eba57eb26",
|
||||||
"url": "https://github.com/rose-pine/cava/archive/f9a915563d281d4a58e6f9fe701bdb769f1bbf26.tar.gz",
|
"url": "https://github.com/catppuccin/cava/archive/0746f77974330338ee2e1e4d1ef9872eba57eb26.tar.gz",
|
||||||
"hash": "06qzrlbj2kzrbrq6ag9kha0yx3yvixsz79p7x4ib2dxl9rkxk7gf"
|
"hash": "01jvxv797zvamwm82m5i1m9b92hm1bcjdr2w53wi60ws244iq174"
|
||||||
},
|
},
|
||||||
"delta": {
|
"delta": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[
|
[
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
./bottom.nix
|
||||||
./btop.nix
|
./btop.nix
|
||||||
./cava.nix
|
./cava.nix
|
||||||
./cursor.nix
|
./cursor.nix
|
||||||
|
|
15
modules/home-manager/bottom.nix
Normal file
15
modules/home-manager/bottom.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (config.catppuccin) sources;
|
||||||
|
cfg = config.programs.bottom.catppuccin;
|
||||||
|
enable = cfg.enable && config.programs.bottom.enable;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.programs.bottom.catppuccin = lib.ctp.mkCatppuccinOpt { name = "bottom"; };
|
||||||
|
|
||||||
|
config = lib.mkIf enable {
|
||||||
|
programs.bottom = {
|
||||||
|
settings = lib.importTOML "${sources.bottom}/themes/${cfg.flavor}.toml";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,23 +1,18 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
let
|
||||||
lib,
|
inherit (config.catppuccin) sources;
|
||||||
...
|
cfg = config.programs.btop.catppuccin;
|
||||||
}: let
|
|
||||||
inherit (config.rose-pine) sources;
|
|
||||||
cfg = config.programs.btop.rose-pine;
|
|
||||||
enable = cfg.enable && config.programs.btop.enable;
|
enable = cfg.enable && config.programs.btop.enable;
|
||||||
|
|
||||||
themeFile =
|
themeFile = "catppuccin_${cfg.flavor}.theme";
|
||||||
if (cfg.flavor == "main")
|
themePath = "/themes/${themeFile}";
|
||||||
then "rose-pine.theme"
|
|
||||||
else "rose-pine-${cfg.flavor}.theme";
|
|
||||||
themePath = "/${themeFile}";
|
|
||||||
theme = sources.btop + themePath;
|
theme = sources.btop + themePath;
|
||||||
in {
|
in
|
||||||
options.programs.btop.rose-pine = lib.rp.mkRosePineOpt {name = "btop";};
|
{
|
||||||
|
options.programs.btop.catppuccin = lib.ctp.mkCatppuccinOpt { name = "btop"; };
|
||||||
|
|
||||||
config = lib.mkIf enable {
|
config = lib.mkIf enable {
|
||||||
xdg.configFile."btop/themes${themePath}".source = theme;
|
xdg.configFile."btop${themePath}".source = theme;
|
||||||
|
|
||||||
programs.btop.settings.color_theme = themeFile;
|
programs.btop.settings.color_theme = themeFile;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
let
|
||||||
lib,
|
inherit (config.catppuccin) sources;
|
||||||
...
|
cfg = config.programs.cava.catppuccin;
|
||||||
}: let
|
|
||||||
inherit (config.rose-pine) sources;
|
|
||||||
cfg = config.programs.cava.rose-pine;
|
|
||||||
enable = cfg.enable && config.programs.cava.enable;
|
enable = cfg.enable && config.programs.cava.enable;
|
||||||
flavor =
|
flavor = "${cfg.flavor}" + lib.optionalString cfg.transparent "-transparent";
|
||||||
if (cfg.flavor == "main")
|
in
|
||||||
then "rosepine"
|
{
|
||||||
else cfg.flavor;
|
options.programs.cava.catppuccin = lib.ctp.mkCatppuccinOpt { name = "cava"; } // {
|
||||||
in {
|
transparent = lib.mkEnableOption "transparent version of flavor";
|
||||||
options.programs.cava.rose-pine = lib.rp.mkRosePineOpt {name = "cava";};
|
};
|
||||||
|
|
||||||
config.programs.cava = lib.mkIf enable {
|
config.programs.cava = lib.mkIf enable {
|
||||||
settings = lib.rp.fromINIRaw (sources.cava + "/${flavor}.cava");
|
settings = lib.ctp.fromINIRaw (sources.cava + "/themes/${flavor}.cava");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue