picom: use my-picom branch with spring physics and animation fixes
- Point to my-picom branch (clean merge of spring-physics + animation-fixes PRs) - Includes: spring physics curve, adaptive settling threshold, position detection fix - Add suppressions to geometry animation to prevent opacity changes from interrupting position/scale animations Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -168,15 +168,16 @@ in
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
# Using mainline picom with spring physics animation support
|
# Using mainline picom with spring physics + animation fixes
|
||||||
# Branch: spring-physics on colonelpanic8/picom
|
# Branch: my-picom on colonelpanic8/picom
|
||||||
|
# Includes: spring physics curve, adaptive settling threshold, position detection fix
|
||||||
picom = prev.picom.overrideAttrs (old: {
|
picom = prev.picom.overrideAttrs (old: {
|
||||||
version = "13";
|
version = "13";
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
repo = "picom";
|
repo = "picom";
|
||||||
owner = "colonelpanic8";
|
owner = "colonelpanic8";
|
||||||
rev = "spring-physics";
|
rev = "my-picom";
|
||||||
sha256 = "sha256-yyUs8E8K59b1tJkJ0sdTh2hi83Uhw6fIYvBWPx0jEIw=";
|
sha256 = "sha256-XeciIK5q6WE9wirWEHdevfGiNzRANudFcRcRhouWTFE=";
|
||||||
};
|
};
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
dontCheck = true;
|
dontCheck = true;
|
||||||
|
|||||||
@@ -131,10 +131,11 @@ makeEnable config "myModules.xmonad" true {
|
|||||||
# Set clamping to false for bounce/overshoot effects
|
# Set clamping to false for bounce/overshoot effects
|
||||||
animations = (
|
animations = (
|
||||||
# Window move/resize animation with spring physics
|
# Window move/resize animation with spring physics
|
||||||
# Note: "geometry" is alias for "size" + "position" triggers
|
# "geometry" is alias for "size" + "position" triggers
|
||||||
# position_changed is FALSE if size also changed, so we need scale-x/y too
|
# Suppress opacity changes so they don't interrupt geometry animations
|
||||||
{
|
{
|
||||||
triggers = ["geometry"];
|
triggers = ["geometry"];
|
||||||
|
suppressions = ["decrease-opacity", "increase-opacity"];
|
||||||
offset-x = {
|
offset-x = {
|
||||||
curve = "spring(150, 18, 1.5, false)";
|
curve = "spring(150, 18, 1.5, false)";
|
||||||
start = "window-x-before - window-x";
|
start = "window-x-before - window-x";
|
||||||
@@ -176,6 +177,9 @@ makeEnable config "myModules.xmonad" true {
|
|||||||
start = 0.85;
|
start = 0.85;
|
||||||
end = 1;
|
end = 1;
|
||||||
};
|
};
|
||||||
|
# Center the scaling effect
|
||||||
|
offset-x = "(1 - scale-x) / 2 * window-width";
|
||||||
|
offset-y = "(1 - scale-y) / 2 * window-height";
|
||||||
},
|
},
|
||||||
# Window close/hide animation with spring physics
|
# Window close/hide animation with spring physics
|
||||||
{
|
{
|
||||||
@@ -195,6 +199,9 @@ makeEnable config "myModules.xmonad" true {
|
|||||||
start = 1;
|
start = 1;
|
||||||
end = 0.9;
|
end = 0.9;
|
||||||
};
|
};
|
||||||
|
# Center the scaling effect
|
||||||
|
offset-x = "(1 - scale-x) / 2 * window-width";
|
||||||
|
offset-y = "(1 - scale-y) / 2 * window-height";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user