Skip to content

Commit

Permalink
terminal/emulators/foot: move theme to catppuccin module
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed May 30, 2024
1 parent a4376be commit 08736be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
23 changes: 0 additions & 23 deletions modules/home/programs/terminal/emulators/foot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;
inherit (lib.strings) removePrefix;

cfg = config.${namespace}.programs.terminal.emulators.foot;
catppuccin = import (lib.snowfall.fs.get-file "modules/home/theme/catppuccin/colors.nix");
in
{
options.${namespace}.programs.terminal.emulators.foot = {
Expand Down Expand Up @@ -77,27 +75,6 @@ in

colors = {
alpha = "0.85";

foreground = "${(removePrefix "#") catppuccin.colors.text.hex}";
background = "${(removePrefix "#") catppuccin.colors.base.hex}";

regular0 = "${(removePrefix "#") catppuccin.colors.surface1.hex}";
regular1 = "${(removePrefix "#") catppuccin.colors.red.hex}";
regular2 = "${(removePrefix "#") catppuccin.colors.green.hex}";
regular3 = "${(removePrefix "#") catppuccin.colors.yellow.hex}";
regular4 = "${(removePrefix "#") catppuccin.colors.blue.hex}";
regular5 = "${(removePrefix "#") catppuccin.colors.pink.hex}";
regular6 = "${(removePrefix "#") catppuccin.colors.teal.hex}";
regular7 = "${(removePrefix "#") catppuccin.colors.subtext0.hex}";

bright0 = "${(removePrefix "#") catppuccin.colors.surface2.hex}";
bright1 = "${(removePrefix "#") catppuccin.colors.red.hex}";
bright2 = "${(removePrefix "#") catppuccin.colors.green.hex}";
bright3 = "${(removePrefix "#") catppuccin.colors.yellow.hex}";
bright4 = "${(removePrefix "#") catppuccin.colors.blue.hex}";
bright5 = "${(removePrefix "#") catppuccin.colors.pink.hex}";
bright6 = "${(removePrefix "#") catppuccin.colors.teal.hex}";
bright7 = "${(removePrefix "#") catppuccin.colors.subtext0.hex}";
};
};
};
Expand Down
1 change: 1 addition & 0 deletions modules/home/theme/catppuccin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ in
"cava"
"fish"
"fzf"
"foot"
"gh-dash"
"gitui"
"glamour"
Expand Down

0 comments on commit 08736be

Please sign in to comment.