From 2049c94a1c9b36677f18ca24151eddc06d662089 Mon Sep 17 00:00:00 2001 From: kenji Date: Fri, 26 Dec 2025 13:05:26 -0600 Subject: [PATCH] add: improved animation --- apps/hyprland/home.nix | 1 + apps/hyprland/hypr/animation.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 apps/hyprland/hypr/animation.nix diff --git a/apps/hyprland/home.nix b/apps/hyprland/home.nix index c8cb51f..e2b55ae 100644 --- a/apps/hyprland/home.nix +++ b/apps/hyprland/home.nix @@ -4,6 +4,7 @@ ./hypr/general.nix ./hypr/exec.nix ./hypr/rules.nix + ./hypr/animation.nix ]; wayland.windowManager.hyprland.enable = true; wayland.windowManager.hyprland.systemd.enable = false; # for UWSM support... diff --git a/apps/hyprland/hypr/animation.nix b/apps/hyprland/hypr/animation.nix new file mode 100644 index 0000000..74d3783 --- /dev/null +++ b/apps/hyprland/hypr/animation.nix @@ -0,0 +1,32 @@ +{ + wayland.windowManager.hyprland.settings = { + animations = { + enabled = true; + + bezier = [ + "easeOutQuint,0.23,1,0.32,1" + "easeInOutCubic,0.65,0.05,0.36,1" + "linear,0,0,1,1" + "almostLinear,0.5,0.5,0.75,1.0" + "quick,0.15,0,0.1,1" + ]; + + animation = [ + "global, 1, 10, default" + "border, 1, 5.39, easeOutQuint" + "windows, 1, 4.79, easeOutQuint" + "windowsIn, 1, 4.1, easeOutQuint, popin 87%" + "windowsOut, 1, 1.49, linear, popin 87%" + "fadeIn, 1, 1.73, almostLinear" + "fadeOut, 1, 1.46, almostLinear" + "fade, 1, 3.03, quick" + "layers, 1, 3.81, easeOutQuint" + "layersIn, 1, 4, easeOutQuint, fade" + "layersOut, 1, 1.5, linear, fade" + "fadeLayersIn, 1, 1.79, almostLinear" + "fadeLayersOut, 1, 1.39, almostLinear" + "workspaces, 0, 0, ease" + ]; + }; + }; +}