2024-01-09 19:18:10 +00:00
|
|
|
{pkgs, ...}: {
|
2023-11-06 07:48:20 +00:00
|
|
|
services.picom = {
|
|
|
|
enable = true;
|
2024-01-09 19:18:10 +00:00
|
|
|
package = pkgs.picom.overrideAttrs (old: {
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "FT-Labs";
|
|
|
|
repo = "picom";
|
|
|
|
rev = "ad8feaad127746beaf2afe2b2ea37e7af204a2ac";
|
|
|
|
sha256 = "sha256-3lZ41DkNi7FVyEwvMaWwOjLD2aZ6DxZhhvVQMnU6JrI=";
|
|
|
|
};
|
|
|
|
buildInputs = old.buildInputs ++ [pkgs.pcre2];
|
|
|
|
});
|
2023-11-06 09:02:08 +00:00
|
|
|
settings = {
|
2024-01-09 19:18:10 +00:00
|
|
|
# Animations
|
|
|
|
animations = true;
|
|
|
|
animation-for-open-window = "zoom";
|
|
|
|
animation-for-unmap-window = "squeeze";
|
|
|
|
animation-for-transient-window = "slide-down";
|
2023-11-06 09:02:08 +00:00
|
|
|
|
2024-01-09 19:18:10 +00:00
|
|
|
# Blur
|
|
|
|
blur-method = "dual_kawase";
|
|
|
|
blur-strength = 10;
|
2024-01-09 19:36:50 +00:00
|
|
|
blur-background-exclude = [
|
|
|
|
"_GTK_FRAME_EXTENTS@:c"
|
|
|
|
];
|
2023-11-06 09:02:08 +00:00
|
|
|
|
2024-01-09 19:18:10 +00:00
|
|
|
# Corners
|
|
|
|
corner-radius = 12;
|
|
|
|
rounded-corners-exclude = [
|
|
|
|
"class_g = 'Polybar'"
|
2023-11-06 09:02:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Opacity
|
|
|
|
opacity-rule = [
|
2024-01-07 06:19:24 +00:00
|
|
|
"100:_NET_WM_STATE@:32a = '_NET_WM_STATE_FULLSCREEN'"
|
2024-01-09 19:18:10 +00:00
|
|
|
"90:class_g = 'Polybar'"
|
|
|
|
"90:class_g = 'Rofi'"
|
|
|
|
"90:class_g = 'Alacritty'"
|
2023-11-06 09:02:08 +00:00
|
|
|
];
|
|
|
|
|
2024-01-09 19:18:10 +00:00
|
|
|
# Shadow
|
|
|
|
shadow = true;
|
|
|
|
shadow-exclude = [
|
2024-01-07 06:19:24 +00:00
|
|
|
"_GTK_FRAME_EXTENTS@:c"
|
2023-11-06 09:02:08 +00:00
|
|
|
];
|
|
|
|
|
2024-01-09 19:18:10 +00:00
|
|
|
# Misc
|
2023-11-06 09:02:08 +00:00
|
|
|
backend = "glx";
|
2024-01-09 19:18:10 +00:00
|
|
|
glx-no-rebind-pixmap = true;
|
|
|
|
glx-no-stencil = true;
|
2023-11-06 09:02:08 +00:00
|
|
|
vsync = true;
|
|
|
|
unredir-if-possible = true;
|
|
|
|
};
|
|
|
|
};
|
2023-11-06 07:48:20 +00:00
|
|
|
}
|