2022-04-11 11:32:21 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.picom = {
|
|
|
|
enable = true;
|
|
|
|
fade = true;
|
|
|
|
fadeDelta = 5;
|
2022-05-05 21:56:43 +00:00
|
|
|
fadeSteps = [ 4.0e-2 4.0e-2 ];
|
2022-04-11 11:32:21 +00:00
|
|
|
fadeExclude =
|
|
|
|
[ "window_type *= 'menu'" "name ~= 'Firefox$'" "focused = 1" ];
|
|
|
|
shadow = true;
|
|
|
|
shadowOffsets = [ (-10) (-15) ];
|
2022-05-05 21:56:43 +00:00
|
|
|
shadowOpacity = 0.8;
|
2022-04-11 11:32:21 +00:00
|
|
|
shadowExclude =
|
|
|
|
[ "window_type *= 'menu'" "name ~= 'Firefox$'" "focused = 1" ];
|
|
|
|
backend = "xrender";
|
|
|
|
vSync = true;
|
2022-05-05 21:56:43 +00:00
|
|
|
settings = {
|
|
|
|
"unredir-if-possible" = true;
|
|
|
|
"dbe" = true;
|
|
|
|
};
|
2022-11-18 15:59:30 +00:00
|
|
|
extraArgs = [ "--legacy-backends" ];
|
2022-04-11 11:32:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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}
|
|
|
|
'';
|
|
|
|
}
|