nix/programm_configs/picom.nix
2024-02-29 22:48:55 +01:00

54 lines
1.2 KiB
Nix

{ pkgs, ... }:
{
services.picom = {
enable = true;
backend = "xrender";
fade = true;
# The time between steps in a fade in milliseconds.
fadeDelta = 10;
fadeSteps = [ 0.03 0.03 ];
# Enabled client-side shadows on windows.
shadow = true;
shadowOffsets = [ (-5) (-5) ];
# The translucency for shadows. (default .75)
shadowOpacity = 0.5;
vSync = true;
inactiveOpacity = 1;
activeOpacity = 1;
opacityRules = [
"85:class_g = 'Alacritty' && focused"
"60:class_g = 'Alacritty' && !focused"
];
settings = {
blur = {
background = true;
method = "kernel";
kern = "7x7gaussian";
strength = 20;
};
detect-rounded-corners = true;
shadow-ignore-shaped = false;
};
wintypes = {
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
};
};
}