Fix: Picom in its own file

This commit is contained in:
DuN0z 2025-10-29 09:08:35 +01:00
parent 567d2949f9
commit 667179af2a
2 changed files with 5 additions and 13 deletions

51
hm/common/picom.nix Normal file
View file

@ -0,0 +1,51 @@
{ pkgs, ... }: {
home.packages = pkgs.picom ;
services.picom = {
enable = true;
backend = "glx"; # plus fluide si ta carte gère bien OpenGL
fade = true;
fadeDelta = 5; # vitesse fondu
shadow = true;
shadowOpacity = 0.5;
vSync = true; # évite le tearing
settings = {
# Transparence
inactive-opacity = 0.80;
active-opacity = 0.9;
frame-opacity = 0.90;
inactive-opacity-override = false;
# Coins arrondis
corner-radius = 8;
round-borders = 1;
rounded-corners-exclude = [
"class_g = 'Polybar'"
"class_g = 'Rofi'"
];
# Flou subtil
blur-method = "dual_kawase";
blur-strength = 4;
blur-background = true;
blur-background-frame = true;
blur-background-fixed = false;
blur-background-exclude = [
"class_g = 'Polybar'"
"class_g = 'Rofi'"
"class_g = 'Gimp'"
"window_type = 'dock'"
];
# Exclusions ombres
shadow-exclude = [
"class_g = 'Polybar'"
"class_g = 'Rofi'"
"window_type = 'dock'"
"window_type = 'desktop'"
];
};
};
}
# vim: set ts=2 sw=2 sts=2 et :