reorganize theme stuff

This commit is contained in:
Reid 2024-07-25 21:22:21 -07:00
parent a55c75925c
commit cb510f5173
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
8 changed files with 60 additions and 28 deletions

View file

@ -5,9 +5,10 @@ let
cfg = config.modules.desktop.themes;
accent = "pink";
variant = "mocha";
colorScheme = inputs.nix-colors.colorSchemes.catppuccin-mocha;
in {
config = mkIf (cfg.active == "catppuccin") {
colorScheme = inputs.nix-colors.colorSchemes.catppuccin-mocha;
colorScheme = colorScheme;
modules.desktop.themes = {
dark = true;
@ -63,7 +64,35 @@ in {
};
};
hyprland = "${inputs.hyprland-catppuccin}/themes/${variant}.conf";
hyprland = {
source = "${inputs.hyprland-catppuccin}/themes/${variant}.conf";
extraConfig = ''
general {
col.active_border=''$${accent}
col.inactive_border=$surface0
}
decoration {
col.shadow=$surface0
col.shadow_inactive=$surface0
}
misc {
background_color=$crust
}
'';
};
waybar = builtins.concatStringsSep "\n" [
"@import \"${inputs.waybar-catppuccin}/themes/${variant}.css\";"
(lib.readFile ./waybar.css)
];
wob = with colorScheme.palette; {
borderColor = "${base04}FF";
backgroundColor = "${base01}66";
barColor = "${base05}FF";
};
rofi = ./rofi.rasi;
};
};
}