38 lines
849 B
Nix
38 lines
849 B
Nix
{ config, lib, ... }: {
|
|
options = {
|
|
services = {
|
|
picom = {
|
|
glxBackend = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "the default terminal to use";
|
|
default = "glx";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
services.picom = {
|
|
enable = true;
|
|
backend = config.services.picom.glxBackend;
|
|
fade = true;
|
|
opacityRules = [
|
|
"95:class_g = 'kitty' && focused"
|
|
"85:class_g = 'kitty' && !focused"
|
|
"95:class_g = 'Alacritty' && focused"
|
|
"85:class_g = 'Alacritty' && !focused"
|
|
"85:window_type = 'dock'"
|
|
];
|
|
settings = {
|
|
blur = {
|
|
method = "gaussian";
|
|
size = 10;
|
|
deviation = 5.0;
|
|
};
|
|
corner-radius = 6;
|
|
rounded-corners-exclude = [
|
|
"window_type = 'dock'"
|
|
"window_type = 'desktop'"
|
|
];
|
|
};
|
|
};
|
|
}
|