From d471060981a32adff0fef9f3ab7d65b6790f3adf Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Fri, 4 Sep 2026 13:59:23 +0200 Subject: [PATCH] hypr: update configs --- dot-config/hypr/fragments/animations.lua | 22 ++---- dot-config/hypr/fragments/keybinds.lua | 2 +- dot-config/hypr/fragments/windowrules.lua | 52 ++++++++----- dot-config/hypr/hyprland.lua | 89 ++++++++++++++++++++--- 4 files changed, 121 insertions(+), 44 deletions(-) diff --git a/dot-config/hypr/fragments/animations.lua b/dot-config/hypr/fragments/animations.lua index 958b19f..6a98af8 100644 --- a/dot-config/hypr/fragments/animations.lua +++ b/dot-config/hypr/fragments/animations.lua @@ -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%" }) diff --git a/dot-config/hypr/fragments/keybinds.lua b/dot-config/hypr/fragments/keybinds.lua index 1df7c79..cdfcf47 100644 --- a/dot-config/hypr/fragments/keybinds.lua +++ b/dot-config/hypr/fragments/keybinds.lua @@ -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 diff --git a/dot-config/hypr/fragments/windowrules.lua b/dot-config/hypr/fragments/windowrules.lua index 3a4a594..37eb2c7 100644 --- a/dot-config/hypr/fragments/windowrules.lua +++ b/dot-config/hypr/fragments/windowrules.lua @@ -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).*$", }, }) diff --git a/dot-config/hypr/hyprland.lua b/dot-config/hypr/hyprland.lua index 9f1ed54..1f3a161 100644 --- a/dot-config/hypr/hyprland.lua +++ b/dot-config/hypr/hyprland.lua @@ -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 = "", +-- action = "hyprctl dispatch killactive", +-- }) + +-- hl.plugin.hyprbars.add_button({ +-- bg_color = "rgb(3333aa)", +-- fg_color = "rgb(aaaaaa)", +-- size = 18, +-- icon = "", +-- action = "hyprctl dispatch fullscreen 1", +-- }) + +-- hl.plugin.hyprbars.add_button({ +-- bg_color = "rgb(333333)", +-- fg_color = "rgb(aa3333)", +-- size = 18, +-- icon = "", +-- action = "hyprctl dispatch killactive", +-- }) + +-- add_button = { colors = {primary}}, 18, , hyprctl dispatch fullscreen 1, +-- add_button = { colors = {secondary}}, 18, , 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") + -- 2.55.0