From f7ad0794bd79aca34d9ad01848a9258e9a800edf Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 15 Oct 2024 18:05:59 -0500 Subject: [PATCH] hyprland: fix pip aspect ratio Signed-off-by: Myned --- options/custom/desktops/hyprland/rules.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/custom/desktops/hyprland/rules.nix b/options/custom/desktops/hyprland/rules.nix index c6eabd4..ffc12a9 100644 --- a/options/custom/desktops/hyprland/rules.nix +++ b/options/custom/desktops/hyprland/rules.nix @@ -107,7 +107,7 @@ in { x = tr (width / scale - (toInt w) - gap - border); y = tr (gap + border); w = tr (width / scale * 0.25 - gap - gap / 2 - border * 2); # 25% - h = tr ((toInt w) * 9 / 16); # 16:9 aspect ratio + h = tr ((toInt w) * 9 / 16 + 1); # 16:9 aspect ratio }; ### Rules