This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager-flake/modules/gui/picom.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'"
];
};
};
}