]> Freerunner's - dotfiles.git/commitdiff
hypr: update configs
authorAndre Ramnitz <andre.ramnitz@mail.de>
Fri, 4 Sep 2026 11:59:23 +0000 (13:59 +0200)
committerAndre Ramnitz <andre.ramnitz@mail.de>
Tue, 8 Sep 2026 15:44:16 +0000 (17:44 +0200)
dot-config/hypr/fragments/animations.lua
dot-config/hypr/fragments/keybinds.lua
dot-config/hypr/fragments/windowrules.lua
dot-config/hypr/hyprland.lua

index 958b19fa32068efc27ee0fc3df5cc2a80208aded..6a98af83c35f374c6c8eea00ee9b289cdb4cd939 100644 (file)
@@ -19,25 +19,19 @@ hl.curve("almostLinear",   { type = "bezier", points = { {0.5, 0.5},   {0.75, 1}
 hl.curve("quick",          { type = "bezier", points = { {0.15, 0},    {0.1, 1}     } })
 
 -- Default springs
-hl.curve("easy",           { type = "spring", mass = 1, stiffness = 71.2633, dampening = 15.8273644 })
-
--- curve overrides
-hl.curve("border",         { type = "bezier", points = { {1, 1}     , {1   , 1} } })
-hl.curve("easeOutQuad",    { type = "bezier", points = { {0.5, 1}   , {0.89, 1} } })
-hl.curve("easeInOutExpo",  { type = "bezier", points = { {1, 0}     , {1   , 0} } })
-hl.curve("turboOut",       { type = "bezier", points = { {0.3, -0.3}, {0   , 1} } })
+hl.curve("easy",           { type = "spring", mass = 1, stiffness = 238.1191, dampening = 24.21279333 })
 
 hl.animation({ leaf = "global",        enabled = true,  speed = 10,   bezier = "default" })
 hl.animation({ leaf = "border",        enabled = true,  speed = 5.39, bezier = "easeOutQuint" })
 hl.animation({ leaf = "windows",       enabled = true,  speed = 4.79, spring = "easy" })
-hl.animation({ leaf = "windowsIn",     enabled = true,  speed = 4.1,  spring = "easy", style = "popin 87%" })
-hl.animation({ leaf = "windowsOut",    enabled = true,  speed = 1.49, bezier = "linear", style = "popin 87%" })
+hl.animation({ leaf = "windowsIn",     enabled = true,  speed = 4.1,  spring = "easy",         style = "popin 87%" })
+hl.animation({ leaf = "windowsOut",    enabled = true,  speed = 1.49, bezier = "linear",       style = "popin 87%" })
 hl.animation({ leaf = "fadeIn",        enabled = true,  speed = 1.73, bezier = "almostLinear" })
 hl.animation({ leaf = "fadeOut",       enabled = true,  speed = 1.46, bezier = "almostLinear" })
 hl.animation({ leaf = "fade",          enabled = true,  speed = 3.03, bezier = "quick" })
 hl.animation({ leaf = "layers",        enabled = true,  speed = 3.81, bezier = "easeOutQuint" })
 hl.animation({ leaf = "layersIn",      enabled = true,  speed = 4,    bezier = "easeOutQuint", style = "fade" })
-hl.animation({ leaf = "layersOut",     enabled = true,  speed = 1.5,  bezier = "linear", style = "fade" })
+hl.animation({ leaf = "layersOut",     enabled = true,  speed = 1.5,  bezier = "linear",       style = "fade" })
 hl.animation({ leaf = "fadeLayersIn",  enabled = true,  speed = 1.79, bezier = "almostLinear" })
 hl.animation({ leaf = "fadeLayersOut", enabled = true,  speed = 1.39, bezier = "almostLinear" })
 hl.animation({ leaf = "workspaces",    enabled = true,  speed = 1.94, bezier = "almostLinear", style = "fade" })
@@ -46,8 +40,8 @@ hl.animation({ leaf = "workspacesOut", enabled = true,  speed = 1.94, bezier = "
 hl.animation({ leaf = "zoomFactor",    enabled = true,  speed = 7,    bezier = "quick" })
 
 -- animation overrides
-hl.animation({ leaf = "windowsMove"  , enabled = true, speed = 3   , bezier = "easeOutQuad" })
-hl.animation({ leaf = "borderangle"  , enabled = true, speed = 1   , bezier = "border", style = "loop" })
-hl.animation({ leaf = "workspacesIn" , enabled = true, speed = 2.91, bezier = "easeInOutExpo", style = "slidefade 57%" })
-hl.animation({ leaf = "workspacesOut", enabled = true, speed = 2.21, bezier = "easeInOutExpo", style = "slidefade 57%" })
+hl.animation({ leaf = "windowsMove"  , enabled = true, speed = 3   , bezier = "easeOutQuint" })
+-- hl.animation({ leaf = "borderangle"  , enabled = true, speed = 75  , bezier = "border", style = "loop" })
+hl.animation({ leaf = "workspacesIn" , enabled = true, speed = 2.91, bezier = "easeInOutCubic", style = "slidefade 57%" })
+hl.animation({ leaf = "workspacesOut", enabled = true, speed = 2.21, bezier = "easeInOutCubic", style = "slidefade 57%" })
 
index 1df7c79ce3d4664ac6cdaa765d8d6cb2eeb13ddd..cdfcf473df70057bff777a2cc6999014905d336f 100644 (file)
@@ -14,7 +14,7 @@ local mainMod = "SUPER"
 
 local fallbackterm = "konsole"
 local term = "foot"
-local floatterm = "foot -a popup -o colors-dark.alpha=0.96 -o colors-bright.alpha=0.96"
+local floatterm = "foot -a popup -o colors-dark.alpha=0.96 -o colors-light.alpha=0.96"
 
 local moveAmount = 120
 
index 3a4a594a9ec7fc430ee7d9b103fc8e9a2d40b0af..37eb2c75fefcb59ba5e3d0a8099e72a4d8a5756c 100644 (file)
@@ -6,22 +6,23 @@
 -- ~/.config/hypr/fragments/windowrules.lua
 
 -- hide hyprbars on non-floating windows
-hl.window_rule({
-    name = "nobar1",
-    match = {
-        float = false,
-    },
-    ["hyprbars:no_bar"] = true
-})
+-- hl.window_rule({
+--     name = "nobar1",
+--     match = {
+--         float = false,
+--     },
+--     no_shadow = true,
+--     ["hyprbars:no_bar"] = true
+-- })
 
 -- hide hyprbars on specific windows
-hl.window_rule({
-    name = "nobar2",
-    match = {
-        class = "^((org.kde.*|steam|io.github.ilya_zlobintsev.LACT).*)$",
-    },
-    ["hyprbars:no_bar"] = true
-})
+-- hl.window_rule({
+--     name = "nobar2",
+--     match = {
+--         class = "^((org.kde.*|steam|io.github.ilya_zlobintsev.LACT).*)$",
+--     },
+--     ["hyprbars:no_bar"] = true
+-- })
 
 hl.window_rule({
     name = "floating_enable",
@@ -128,6 +129,14 @@ hl.window_rule({
     },
 })
 
+hl.window_rule({
+    name = "workspace2",
+    workspace = 2,
+    match = {
+        class = "^(pm|tm|pr|thunderbird|thunderbird-bin)$",
+    },
+})
+
 hl.window_rule({
     name = "workspace3",
     pseudo = true,
@@ -142,7 +151,14 @@ hl.window_rule({
     name = "workspace4",
     workspace = 4,
     match = {
-        class = "^((deezer|ncmpcpp|spotify|ardour).*)$",
+        class = "^((deezer|ncmpcpp|spotify).*)$",
+    },
+})
+
+hl.window_rule({
+    name = "workspace5",
+    workspace = 5,
+    match = {
     },
 })
 
@@ -150,7 +166,7 @@ hl.window_rule({
     name = "workspace5",
     workspace = 5,
     match = {
-        class = "^(gimp|krita)$",
+        initial_class = "^(steam|heroic).*$",
     },
 })
 
@@ -158,7 +174,7 @@ hl.window_rule({
     name = "workspace6",
     workspace = 6,
     match = {
-        initial_class = "^(steam|heroic)$",
+        initial_class = "^(steam_app).*$",
     },
 })
 
@@ -166,7 +182,7 @@ hl.window_rule({
     name = "workspace7",
     workspace = 7,
     match = {
-        class = "^(pm|tm|pr|thunderbird|thunderbird-bin)$",
+        class = "^(gimp|krita|ardour).*$",
     },
 })
 
index 9f1ed543124ca3fad4ca862e514cefe3f48cab4b..1f3a1614a20cd6457b70b507054ae1f936486d9a 100644 (file)
@@ -3,15 +3,6 @@
 -- ░█▀█░░█░░█▀▀░█▀▄░█░░░█▀█░█░█░█░█░░░█░░░█░█░█░█░█▀▀░░█░░█░█
 -- ░▀░▀░░▀░░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀
 
-require("fragments.env")
-require("fragments.permissions")
-require("fragments.keybinds")
-require("fragments.workspacerules")
-require("fragments.layerrules")
-require("fragments.animations")
-require("fragments.windowrules")
-
-
 ------------------
 ---- MONITORS ----
 ------------------
@@ -22,6 +13,7 @@ hl.monitor({
     mode     = "preferred",
     position = "auto",
     scale    = "auto",
+    cm = "auto"
 })
 
 
@@ -95,7 +87,7 @@ hl.env("HYPRCURSOR_SIZE", "32")
 hl.config({
     general = {
         gaps_in  = 5,
-        gaps_out = 20,
+        gaps_out = { top = 10, left = 5, right = 5, bottom = 10 },
 
         border_size = 2,
 
@@ -124,7 +116,7 @@ hl.config({
         shadow = {
             enabled      = true,
             range        = 4,
-            render_power = 3,
+            render_power = 2,
             color        = 0xee1a1a1a,
         },
 
@@ -135,6 +127,22 @@ hl.config({
             vibrancy  = 0.1696,
             noise     = 0.0696,
         },
+
+        motion_blur = {
+            enabled = true,
+            samples = 7,
+        },
+
+   --      wobble = {
+   --          enabled   = true,
+                       -- mesh = 22,
+                       -- stiffness =200,
+                       -- damping = 12,
+                       -- mass = 1,
+                       -- intensity = 0.2,
+                       -- value_epsilon = 0.25,
+                       -- velocity_epsilon = 2
+   --          },
     },
 })
 
@@ -269,6 +277,53 @@ hl.device({
     accel_profile = "flat"
 })
 
+
+--------------------------------
+------- HYPRLAND PLUGINS  ------
+--------------------------------
+
+-- hl.config({
+--     plugin = {
+--         hyprbars = {
+--             bar_text_font = "ZedMono NFP",
+--             bar_text_size = 11,
+--             bar_height = 21,
+--             bar_color = "rgb(101010)",
+--             text_color = "rgb(efefef)",
+--             bar_part_of_window = 1,
+--             bar_precedence_over_border = 1,
+--     },
+--     },
+-- })
+
+-- hl.plugin.hyprbars.add_button({
+--     bg_color = "rgb(aa3333)",
+--     fg_color = "rgb(aaaaaa)",
+--     size = 18,
+--     icon = "<U+F05AD>",
+--     action = "hyprctl dispatch killactive",
+-- })
+
+-- hl.plugin.hyprbars.add_button({
+--     bg_color = "rgb(3333aa)",
+--     fg_color = "rgb(aaaaaa)",
+--     size = 18,
+--     icon = "<U+F004C>",
+--     action = "hyprctl dispatch fullscreen 1",
+-- })
+
+-- hl.plugin.hyprbars.add_button({
+--     bg_color = "rgb(333333)",
+--     fg_color = "rgb(aa3333)",
+--     size = 18,
+--     icon = "<U+F05AD>",
+--     action = "hyprctl dispatch killactive",
+-- })
+
+-- add_button = { colors = {primary}}, 18, <U+F004C>, hyprctl dispatch fullscreen 1,
+-- add_button = { colors = {secondary}}, 18, <U+EF3E>, hyprctl dispatch movetoworkspacesilent special:min,
+
+
 --------------------------------
 ---- WINDOWS AND WORKSPACES ----
 --------------------------------
@@ -319,4 +374,16 @@ hl.window_rule({
     float = true,
 })
 
+--------------------
+---- FRAGMENTS  ----
+--------------------
+
+require("fragments.env")
+require("fragments.permissions")
+require("fragments.keybinds")
+require("fragments.workspacerules")
+require("fragments.layerrules")
+require("fragments.animations")
+require("fragments.windowrules")
 require("noctalia.noctalia-colors")
+