From a913f9cce0604d6d62953702e9f9e516343a346b Mon Sep 17 00:00:00 2001 From: tux Date: Wed, 9 Jul 2025 19:07:14 +0530 Subject: [PATCH] feat(hyprland): update animations and decoration --- modules/home/desktop/hyprland/default.nix | 44 ++++++++++++++++++----- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/modules/home/desktop/hyprland/default.nix b/modules/home/desktop/hyprland/default.nix index d674844..f917484 100644 --- a/modules/home/desktop/hyprland/default.nix +++ b/modules/home/desktop/hyprland/default.nix @@ -73,12 +73,16 @@ blur = { enabled = true; - size = 5; - passes = 3; - ignore_opacity = true; + size = 7; + passes = 4; new_optimizations = true; xray = true; special = true; + brightness = 1; + noise = 0.01; + contrast = 1; + popups = true; + popups_ignorealpha = 0.6; }; shadow = { @@ -90,12 +94,36 @@ # See https://wiki.hyprland.org/Configuring/Animations animations = { enabled = true; + + bezier = [ + "linear, 0, 0, 1, 1" + "md3_standard, 0.2, 0, 0, 1" + "md3_decel, 0.05, 0.7, 0.1, 1" + "md3_accel, 0.3, 0, 0.8, 0.15" + "overshot, 0.05, 0.9, 0.1, 1.1" + "crazyshot, 0.1, 1.5, 0.76, 0.92" + "hyprnostretch, 0.05, 0.9, 0.1, 1.0" + "menu_decel, 0.1, 1, 0, 1" + "menu_accel, 0.38, 0.04, 1, 0.07" + "easeInOutCirc, 0.85, 0, 0.15, 1" + "easeOutCirc, 0, 0.55, 0.45, 1" + "easeOutExpo, 0.16, 1, 0.3, 1" + "softAcDecel, 0.26, 0.26, 0.15, 1" + "md2, 0.4, 0, 0.2, 1" # use with .2s duration + ]; + animation = [ - "windowsIn, 1, 2, default, popin 0%" - "windowsOut, 1, 2, default, popin" - "windowsMove, 1, 2, default, slide" - "workspaces, 1, 2, default" - "fade, 1, 2, default" + "windows, 1, 3, md3_decel, popin 60%" + "windowsIn, 1, 3, md3_decel, popin 60%" + "windowsOut, 1, 3, md3_accel, popin 60%" + "border, 1, 10, default" + "fade, 1, 3, md3_decel" + "layersIn, 1, 3, menu_decel, slide" + "layersOut, 1, 1.6, menu_accel" + "fadeLayersIn, 1, 3, menu_decel" + "fadeLayersOut, 1, 1.6, menu_accel" + "workspaces, 1, 7, menu_decel, slide" + "specialWorkspace, 1, 3, md3_decel, slidevert" ]; };