change animation options

This commit is contained in:
KoenDR06 2026-02-03 00:12:35 +01:00
parent 0385bf293e
commit 799f03b76a
4 changed files with 74 additions and 80 deletions

6
flake.lock generated
View file

@ -97,11 +97,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1769526953, "lastModified": 1770072491,
"narHash": "sha256-HIBfW2JODixwfblH7b+WhO94h+JM1L2Bxlgv9Ql2fR4=", "narHash": "sha256-tTYck5pk+Aio5gju+AlaYi862dh8OLog9NxSwqvV3J0=",
"owner": "KoenDR06", "owner": "KoenDR06",
"repo": "nix-hyprland", "repo": "nix-hyprland",
"rev": "902971932de932f21ae41ffc068ec1f2d5f606f5", "rev": "eaaba884058f7ebdf9a9c7db40fadb90c11a78a0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -22,6 +22,7 @@
nix-hyprland = { nix-hyprland = {
url = "github:KoenDR06/nix-hyprland"; url = "github:KoenDR06/nix-hyprland";
# url = "path:/home/horseman/Programming/nix-hyprland";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager"; inputs.home-manager.follows = "home-manager";
}; };

View file

@ -5,98 +5,90 @@
}: let }: let
inherit (lib) mkIf; inherit (lib) mkIf;
cfg = config.horseman.wm.hyprland; cfg = config.horseman.wm.hyprland;
easeOut = {
startX = 0.23;
startY = 1.0;
endX = 0.32;
endY = 1.0;
};
easeInOut = {
startX = 0.65;
startY = 0.05;
endX = 0.36;
endY = 1.0;
};
linear = {
startX = 0.0;
startY = 0.0;
endX = 1.0;
endY = 1.0;
};
bounce = {
startX = 0.6;
startY = 1.5;
endX = 0.8;
endY = 1;
};
slowFade = {
startX = 0.4;
startY = 1.0;
endX = 0.4;
endY = 1.0;
};
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
nix-hyprland = { nix-hyprland = {
animations = { animations = {
enabled = true; enabled = true;
beziers = [ animations = {
{ global = {
name = "easeOut"; enabled = false;
startX = 0.23; };
startY = 1.0;
endX = 0.32;
endY = 1.0;
}
{
name = "easeInOut";
startX = 0.65;
startY = 0.05;
endX = 0.36;
endY = 1.0;
}
{
name = "linear";
startX = 0.0;
startY = 0.0;
endX = 1.0;
endY = 1.0;
}
{
name = "bounce";
startX = 0.6;
startY = 1.5;
endX = 0.8;
endY = 1;
}
{
name = "slowFade";
startX = 0.4;
startY = 1.0;
endX = 0.4;
endY = 1.0;
}
];
animations = [ border = {
{
name = "global";
enabled = false;
}
{
name = "border";
speed = 3; speed = 3;
curve = "linear"; curve = easeOut;
} };
{
name = "workspaces"; workspaces = {
speed = 1.5; speed = 1.5;
curve = "easeInOut"; curve = easeInOut;
style = "fade"; style = "fade";
} };
{
name = "specialWorkspace"; specialWorkspace = {
speed = 1.5; speed = 4;
curve = "easeOut"; curve = easeInOut;
style = "slidevert"; style = "slidefadevert 10%";
} };
{
name = "fadeDpms"; fadeDpms = {
speed = 20; speed = 20;
curve = "slowFade"; curve = slowFade;
} };
{
name = "windows"; windows = {
speed = 2; speed = 2;
curve = "bounce"; curve = bounce;
style = "gnomed"; style = "gnomed";
} };
{
name = "windowsOut"; windowsOut = {
enabled = false; enabled = false;
} };
{
name = "layers"; layers = {
speed = 1.5; speed = 1.5;
curve = "slowFade"; curve = slowFade;
style = "popin"; style = "popin";
} };
{
name = "fadeLayers"; fadeLayers = {
speed = 1.5; speed = 1.5;
curve = "linear"; curve = linear;
} };
]; };
}; };
}; };
}; };

View file

@ -78,7 +78,8 @@ in {
"float, initialTitle:^Picture-in-Picture$" "float, initialTitle:^Picture-in-Picture$"
"center, initialTitle:^Picture-in-Picture$" "center, initialTitle:^Picture-in-Picture$"
"size 33% 33%, initialTitle:^Picture-in-Picture$" "size 1280 720, initialTitle:^Picture-in-Picture$"
"opacity 1.0 override, initialTitle:^Picture-in-Picture$"
"float, initialClass:CImg" "float, initialClass:CImg"
"float, initialTitle:GLFW" "float, initialTitle:GLFW"