From 244358a99e0d1b4cf3714b6cc05e37bddd2db4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 21 Sep 2026 20:24:44 +0200 Subject: [PATCH] fix(hyprland): anchor dolphin window to bottom-right, avoid off-screen clipping Cursor-based move formula computed position from window_w/window_h before the rule's own size directive resized the window, pushing it far past the screen edge. Compute the target position directly from the same size formula instead. Co-Authored-By: Claude Sonnet 5 --- .config/hypr/config/windowrules.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/hypr/config/windowrules.lua b/.config/hypr/config/windowrules.lua index 2c0e323..4abd6a7 100644 --- a/.config/hypr/config/windowrules.lua +++ b/.config/hypr/config/windowrules.lua @@ -62,8 +62,8 @@ hl.window_rule({ float = true, size = { "max(monitor_w, monitor_h)*0.50", "min(monitor_w, monitor_h)*0.55" }, move = { - "max(20, min(cursor_x - (window_w*0.50), monitor_w - window_w + 20))", -- X axis clamping - "max(20, min(cursor_y - 50, monitor_h - window_h + 20))" -- Y axis clamping + "monitor_w - (max(monitor_w, monitor_h)*0.50) - 20", -- X axis: always align to screen right (20px margin) + "monitor_h - (min(monitor_w, monitor_h)*0.55) - 20" -- Y axis: always align to screen bottom (20px margin) }, })