]> Freerunner's - dotfiles.git/commitdiff
hypr: carve out animations and stuff'em into its own fragment
authorAndre Ramnitz <tux.rising@gmail.com>
Sun, 27 Oct 2024 23:06:08 +0000 (00:06 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 27 Oct 2024 23:06:08 +0000 (00:06 +0100)
dot-config/hypr/fragments/animations.conf [new file with mode: 0644]
dot-config/hypr/hyprland.conf

diff --git a/dot-config/hypr/fragments/animations.conf b/dot-config/hypr/fragments/animations.conf
new file mode 100644 (file)
index 0000000..565120b
--- /dev/null
@@ -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
+}
+
+
index c73300d8e0215a2cbd5a255c44c13393634c01d4..2a591bf3505b50016ae6de162727bf57a5169cd2 100644 (file)
@@ -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