From c18c2fd2baefa21c5b0443910df19cc950b405cc Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Mon, 28 Oct 2024 00:06:08 +0100 Subject: [PATCH] hypr: carve out animations and stuff'em into its own fragment --- dot-config/hypr/fragments/animations.conf | 21 +++++++++++++++++++++ dot-config/hypr/hyprland.conf | 18 +----------------- 2 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 dot-config/hypr/fragments/animations.conf diff --git a/dot-config/hypr/fragments/animations.conf b/dot-config/hypr/fragments/animations.conf new file mode 100644 index 00000000..565120bf --- /dev/null +++ b/dot-config/hypr/fragments/animations.conf @@ -0,0 +1,21 @@ +animations { + enabled = yes + + bezier = myBezier, 0.05, 0.9, 0.1, 1.00 + bezier = overshoot, 0.05, 0.9, 0.2, 1.00 + bezier = easeOutQuad, 0.5, 1, 0.89, 1 + animation = windows, 1, 3, easeOutQuad + animation = borderangle, 1, 8, default + animation = fade, 1, 7, default + animation = workspaces, 1, 5, default, slidefade 30 + +# shamelessly stolen from https://github.com/prasanthrangan/hyprdots + bezier = winIn, 0.1, 1.1, 0.1, 1.1 + bezier = winOut, 0.3, -0.3, 0, 1 + bezier = liner, 1, 1, 1, 1 + animation = windowsIn, 1, 6, overshoot, slide + animation = windowsOut, 1, 5, winOut, slide + animation = border, 1, 1, liner +} + + diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index c73300d8..2a591bf3 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -130,23 +130,6 @@ decoration { dim_strength = 0.2 } -animations { - enabled = yes - - # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more - - bezier = myBezier, 0.05, 0.9, 0.1, 1.00 - bezier = overshoot, 0.05, 0.9, 0.1, 1.05 - bezier = easeOutQuad, 0.5, 1, 0.89, 1 - - animation = windows, 1, 3, easeOutQuad - animation = windowsOut, 1, 7, default, popin 80% - animation = border, 1, 10, default - animation = borderangle, 1, 8, default - animation = fade, 1, 7, default - animation = workspaces, 1, 5, default, slidefade 30 -} - dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + A in the keybinds section below @@ -219,6 +202,7 @@ plugin { } } +source=./fragments/animations.conf source=./fragments/keybinds.conf source=./fragments/windowrules.conf source=./fragments/workspacerules.conf -- 2.51.2