2022-05-11 23:11:54 +02:00
|
|
|
{ transparency ? 1, wallpaper, variant }: { pkgs, lib, ... }:
|
2022-05-10 18:00:16 +02:00
|
|
|
let
|
|
|
|
githubTheme = pkgs.myVimPlugins.githubNvimTheme; # github theme for neovim
|
|
|
|
foreign = pkgs.callPackage (import ./foreign.nix) { };
|
2022-09-18 01:00:32 +02:00
|
|
|
|
2022-06-18 23:09:21 +02:00
|
|
|
v = (a: b: if variant == "latte" then a else b);
|
2022-09-18 01:00:32 +02:00
|
|
|
|
2022-09-09 00:16:11 +02:00
|
|
|
rofi-variant = "basic";
|
2022-05-10 18:00:16 +02:00
|
|
|
in
|
|
|
|
{
|
2022-08-10 15:43:26 +02:00
|
|
|
name = "catppuccin-${variant}";
|
2022-05-10 19:04:51 +02:00
|
|
|
wallpaper = wallpaper.foreign or "${foreign.wallpapers}/${wallpaper}";
|
2022-05-10 18:00:16 +02:00
|
|
|
|
2022-06-18 23:09:21 +02:00
|
|
|
env = {
|
|
|
|
CATPPUCCIN_FLAVOUR = variant;
|
|
|
|
};
|
|
|
|
|
2022-05-10 18:00:16 +02:00
|
|
|
neovim = {
|
2022-05-15 20:56:19 +02:00
|
|
|
theme = ./nvim.lua;
|
2022-05-11 23:11:54 +02:00
|
|
|
lualineTheme = "catppuccin";
|
2022-05-10 18:00:16 +02:00
|
|
|
};
|
2022-05-11 23:11:54 +02:00
|
|
|
|
2022-09-09 00:16:11 +02:00
|
|
|
tmux.path = "${foreign.tmux}/catppuccin-${variant}.conf";
|
2022-05-10 18:00:16 +02:00
|
|
|
sddm.path = "${foreign.sddm}";
|
2022-05-11 23:11:54 +02:00
|
|
|
|
2022-09-18 01:00:32 +02:00
|
|
|
xresources.config = builtins.readFile "${foreign.xresources}/${variant}.Xresources";
|
2022-05-11 23:11:54 +02:00
|
|
|
|
2022-05-10 18:00:16 +02:00
|
|
|
rofi = {
|
2022-09-09 00:16:11 +02:00
|
|
|
themes = "${foreign.rofi}/${rofi-variant}/.local/share/rofi/themes/";
|
2022-05-11 19:08:21 +02:00
|
|
|
config = ''
|
2022-09-09 00:16:11 +02:00
|
|
|
@import "${foreign.rofi}/${rofi-variant}/.config/rofi/config.rasi"
|
2022-08-10 16:27:03 +02:00
|
|
|
@theme "catppuccin-${variant}"
|
|
|
|
@import "${./rofi.rasi}"
|
|
|
|
'';
|
2022-05-10 18:00:16 +02:00
|
|
|
};
|
2022-05-11 23:11:54 +02:00
|
|
|
|
|
|
|
fish.dangerousColors = lib.strings.concatStringsSep " "
|
2022-09-18 01:00:32 +02:00
|
|
|
(v
|
|
|
|
[
|
|
|
|
"dc8a78"
|
|
|
|
"dd7878"
|
|
|
|
"ea76cb"
|
|
|
|
"8839ef"
|
|
|
|
"d20f39"
|
|
|
|
"e64553"
|
|
|
|
"fe640b"
|
|
|
|
"df8e1d"
|
|
|
|
"40a02b"
|
|
|
|
"179299"
|
|
|
|
"04a5e5"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
"F2CDCD"
|
|
|
|
"DDB6F2"
|
|
|
|
"F5C2E7"
|
|
|
|
"E8A2AF"
|
|
|
|
"F28FAD"
|
|
|
|
"F8BD96"
|
|
|
|
"FAE3B0"
|
|
|
|
"ABE9B3"
|
|
|
|
"B5E8E0"
|
|
|
|
"96CDFB"
|
|
|
|
"89DCEB"
|
|
|
|
]);
|
2022-05-11 23:11:54 +02:00
|
|
|
|
2022-09-09 00:16:11 +02:00
|
|
|
zathura = {
|
|
|
|
enable = true;
|
|
|
|
theme = "${foreign.zathura}/src/catppuccin-${variant}";
|
|
|
|
name = "catppuccin-${variant}";
|
|
|
|
};
|
|
|
|
|
2022-09-18 01:00:32 +02:00
|
|
|
polybar.config = builtins.readFile "${foreign.polybar}/${variant}.ini";
|
2022-05-10 18:00:16 +02:00
|
|
|
|
2022-09-18 01:00:32 +02:00
|
|
|
alacritty = {
|
|
|
|
extraConfig = ''
|
|
|
|
${builtins.readFile "${foreign.alacritty}/catppuccin.yml"}
|
|
|
|
colors: *${variant}
|
|
|
|
'';
|
2022-07-19 20:19:36 +02:00
|
|
|
|
2022-09-18 01:00:32 +02:00
|
|
|
settings = {
|
|
|
|
window = {
|
|
|
|
padding = {
|
|
|
|
x = 4;
|
|
|
|
y = 4;
|
|
|
|
};
|
|
|
|
|
|
|
|
opacity = transparency;
|
|
|
|
};
|
|
|
|
};
|
2022-05-10 18:00:16 +02:00
|
|
|
};
|
|
|
|
}
|