From c47038502f3f04f2678860e67aa74dfe64acd2b8 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 30 Apr 2024 09:25:24 +0700 Subject: [PATCH] enable tearing for steam games --- .config/hypr/hyprland/general.conf | 6 +++--- .config/hypr/hyprland/rules.conf | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/hypr/hyprland/general.conf b/.config/hypr/hyprland/general.conf index aee33051c..264dc15c7 100644 --- a/.config/hypr/hyprland/general.conf +++ b/.config/hypr/hyprland/general.conf @@ -55,7 +55,7 @@ general { layout = dwindle #focus_to_other_workspaces = true # ahhhh i still haven't properly implemented this - allow_tearing = false # some guy told me tearing might make things smoother idk + allow_tearing = true # This just allows the `immediate` window rule to work } dwindle { @@ -126,8 +126,8 @@ animations { # animation = layers, 1, 2, md3_decel, slide animation = layersIn, 1, 3, menu_decel, slide animation = layersOut, 1, 1.6, menu_accel - animation = fadeLayersIn, 1, 3, menu_decel - animation = fadeLayersOut, 1, 1.6, menu_accel + animation = fadeLayersIn, 0, 2, menu_decel + animation = fadeLayersOut, 1, 4.5, menu_accel animation = workspaces, 1, 7, menu_decel, slide # animation = workspaces, 1, 2.5, softAcDecel, slide # animation = workspaces, 1, 7, menu_decel, slidefade 15% diff --git a/.config/hypr/hyprland/rules.conf b/.config/hypr/hyprland/rules.conf index e25f0436d..706ffc116 100644 --- a/.config/hypr/hyprland/rules.conf +++ b/.config/hypr/hyprland/rules.conf @@ -15,6 +15,10 @@ windowrule=float,title:^(Open Folder)(.*)$ windowrule=float,title:^(Save As)(.*)$ windowrule=float,title:^(Library)(.*)$ +# Tearing +windowrule=immediate,.*\.exe +windowrulev2=immediate,class:(steam_app) + # ######## Layer rules ######## layerrule = xray 1, .* # layerrule = noanim, .*