home: picom: use github:FT-Labs/picom && cleanup config
This commit is contained in:
parent
3b8458b0f0
commit
041d35e28e
1 changed files with 36 additions and 59 deletions
|
@ -1,40 +1,33 @@
|
||||||
_: {
|
{pkgs, ...}: {
|
||||||
services.picom = {
|
services.picom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.picom.overrideAttrs (old: {
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "FT-Labs";
|
||||||
|
repo = "picom";
|
||||||
|
rev = "ad8feaad127746beaf2afe2b2ea37e7af204a2ac";
|
||||||
|
sha256 = "sha256-3lZ41DkNi7FVyEwvMaWwOjLD2aZ6DxZhhvVQMnU6JrI=";
|
||||||
|
};
|
||||||
|
buildInputs = old.buildInputs ++ [pkgs.pcre2];
|
||||||
|
});
|
||||||
settings = {
|
settings = {
|
||||||
# Corner
|
# Animations
|
||||||
corner-radius = 0;
|
animations = true;
|
||||||
round-borders = 0;
|
animation-for-open-window = "zoom";
|
||||||
|
animation-for-unmap-window = "squeeze";
|
||||||
|
animation-for-transient-window = "slide-down";
|
||||||
|
|
||||||
# Shadow
|
# Blur
|
||||||
shadow = true;
|
blur-method = "dual_kawase";
|
||||||
shadow-radius = 15;
|
blur-strength = 10;
|
||||||
shadow-offset-x = -8;
|
|
||||||
shadow-offset-y = -8;
|
|
||||||
shadow-opacity = 0.2;
|
|
||||||
shadow-exclude = [
|
|
||||||
"_GTK_FRAME_EXTENTS@:c"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Fade
|
# Corners
|
||||||
fading = true;
|
corner-radius = 12;
|
||||||
fade-in-step = 0.04;
|
rounded-corners-exclude = [
|
||||||
fade-out-step = 0.04;
|
"class_g = 'Polybar'"
|
||||||
fade-delta = 3;
|
|
||||||
|
|
||||||
# Dim inactive window
|
|
||||||
inactive-dim = 0;
|
|
||||||
focus-exclude = [
|
|
||||||
"class_g = 'Rofi'"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Opacity
|
# Opacity
|
||||||
frame-opacity = 1;
|
|
||||||
active-opacity = 1;
|
|
||||||
inactive-opacity = 1;
|
|
||||||
dropdown_menu = {opacity = 1;};
|
|
||||||
popup_menu = {opacity = 1;};
|
|
||||||
|
|
||||||
opacity-rule = [
|
opacity-rule = [
|
||||||
"100:_NET_WM_STATE@:32a = '_NET_WM_STATE_FULLSCREEN'"
|
"100:_NET_WM_STATE@:32a = '_NET_WM_STATE_FULLSCREEN'"
|
||||||
"90:class_g = 'Polybar'"
|
"90:class_g = 'Polybar'"
|
||||||
|
@ -42,34 +35,18 @@ _: {
|
||||||
"90:class_g = 'Alacritty'"
|
"90:class_g = 'Alacritty'"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Blur
|
# Shadow
|
||||||
blur = {
|
shadow = true;
|
||||||
method = "dual_kawase";
|
shadow-exclude = [
|
||||||
strength = 9;
|
|
||||||
};
|
|
||||||
blur-background-exclude = [
|
|
||||||
"_GTK_FRAME_EXTENTS@:c"
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
"class_g = 'Main'"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Misc
|
||||||
backend = "glx";
|
backend = "glx";
|
||||||
|
glx-no-rebind-pixmap = true;
|
||||||
|
glx-no-stencil = true;
|
||||||
vsync = true;
|
vsync = true;
|
||||||
use-damage = false;
|
|
||||||
unredir-if-possible = true;
|
unredir-if-possible = true;
|
||||||
|
|
||||||
wintypes = {
|
|
||||||
dropdown_menu = {opacity = 1;};
|
|
||||||
tooltip = {
|
|
||||||
fade = true;
|
|
||||||
shadow = true;
|
|
||||||
opacity = 0.1;
|
|
||||||
focus = true;
|
|
||||||
};
|
|
||||||
popup_menu = {opacity = 1;};
|
|
||||||
|
|
||||||
notification = {redir-ignore = true;};
|
|
||||||
notify = {redir-ignore = true;};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue