2022-04-11 13:32:21 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.picom = {
|
|
|
|
enable = true;
|
|
|
|
fade = true;
|
|
|
|
fadeDelta = 5;
|
2022-05-05 23:56:43 +02:00
|
|
|
fadeSteps = [ 4.0e-2 4.0e-2 ];
|
2022-04-11 13:32:21 +02:00
|
|
|
fadeExclude =
|
|
|
|
[ "window_type *= 'menu'" "name ~= 'Firefox$'" "focused = 1" ];
|
|
|
|
shadow = true;
|
|
|
|
shadowOffsets = [ (-10) (-15) ];
|
2022-05-05 23:56:43 +02:00
|
|
|
shadowOpacity = 0.8;
|
2022-04-11 13:32:21 +02:00
|
|
|
shadowExclude =
|
|
|
|
[ "window_type *= 'menu'" "name ~= 'Firefox$'" "focused = 1" ];
|
|
|
|
backend = "xrender";
|
|
|
|
vSync = true;
|
2022-05-05 23:56:43 +02:00
|
|
|
settings = {
|
|
|
|
"unredir-if-possible" = true;
|
|
|
|
"dbe" = true;
|
|
|
|
};
|
2022-04-11 13:32:21 +02:00
|
|
|
experimentalBackends = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
test.stubs.picom = { };
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/picom/picom.conf \
|
|
|
|
${./picom-basic-configuration-expected.conf}
|
|
|
|
|
|
|
|
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/picom.service)
|
|
|
|
assertFileContent \
|
|
|
|
"$serviceFile" \
|
|
|
|
${./picom-basic-configuration-expected.service}
|
|
|
|
'';
|
|
|
|
}
|