dotfiles/modules/profiles/theming.nix

53 lines
1.7 KiB
Nix
Raw Normal View History

2024-02-01 14:56:13 +01:00
{ pkgs, config, ... }:
{
stylix = {
image = ../config/wallpapers/wallpapers/red_beetle.jpg;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml";
opacity.terminal = 0.9;
fonts = {
monospace = {
package = pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; };
name = "FiraCode Nerd Font";
};
sizes.terminal = 10;
};
polarity = "dark";
targets.fish.enable = false;
};
home-manager.users.moritz.stylix.targets = {
swaylock.enable = false;
kitty.variant256Colors = true;
fish.enable = false;
};
home-manager.users.moritz.xdg.configFile."fish/themes/base16.theme".text = with config.lib.stylix.colors; ''
fish_color_normal ${base05}
fish_color_command ${base0D}
fish_color_param ${base0F}
fish_color_keyword ${base08}
fish_color_quote ${base0B}
fish_color_redirection ${base0E}
fish_color_end ${base09}
fish_color_comment ${base04}
fish_color_error ${base08}
fish_color_gray ${base04}
fish_color_selection --background=${base02}
fish_color_search_match --background=${base02}
fish_color_option ${base0B}
fish_color_operator ${base0E}
fish_color_escape ${base08}
fish_color_autosuggestion ${base04}
fish_color_cancel ${base08}
fish_color_cwd ${base0A}
fish_color_user ${base0C}
fish_color_host ${base0D}
fish_color_host_remote ${base0B}
fish_color_status ${base08}
fish_pager_color_progress ${base04}
fish_pager_color_prefix ${base0E}
fish_pager_color_completion ${base05}
fish_pager_color_description ${base04}
'';
home-manager.users.moritz.programs.fish.interactiveShellInit = "fish_config theme choose base16";
}