add picom config

This commit is contained in:
Fabian Montero 2024-09-17 19:36:41 -06:00
parent a6be515925
commit e15777ab93
Signed by: fabian
GPG key ID: 1FFAC35E1798174F
2 changed files with 43 additions and 1 deletions

View file

@ -10,10 +10,10 @@
./i3.nix
./polybar.nix
./startx.nix
./picom.nix
];
services = {
picom.enable = true;
dunst.enable = true;
betterlockscreen.enable = true;
};

View file

@ -0,0 +1,42 @@
{
config,
pkgs,
lib,
...
}: {
services.picom = {
enable = true;
fade = true;
fadeSteps = [0.1 0.1];
fadeDelta = 10;
settings = {
animations = [
{
triggers = [
"open"
"show"
];
preset = "appear";
duration = "1";
}
{
triggers = [
"close"
"hide"
];
preset = "disappear";
duration = "1";
}
{
triggers = [
"geometry"
];
preset = "geometry-change";
duration = "1";
}
];
};
};
}