From 54338f3602ce80e367b0e7329860d5c5976a2f0c Mon Sep 17 00:00:00 2001 From: The_miro Date: Sat, 4 Jul 2026 14:58:06 +0200 Subject: [PATCH] feat(hyprlua): size filepicker dialog to 5% of the display Add a size rule alongside the move so the zenity dialog no longer opens at its default ~50% size. zenity clamps to its GTK minimum (~738x363), which is well under half the screen. Co-Authored-By: Claude Opus 4.8 --- desktopenvs/hyprlua/hypr/usr/windowrules.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktopenvs/hyprlua/hypr/usr/windowrules.lua b/desktopenvs/hyprlua/hypr/usr/windowrules.lua index 4acecbf..b12d726 100644 --- a/desktopenvs/hyprlua/hypr/usr/windowrules.lua +++ b/desktopenvs/hyprlua/hypr/usr/windowrules.lua @@ -73,12 +73,13 @@ hl.window_rule({ size = "(monitor_w*0.2) (monitor_h*0.2)", }) --- filepicker — float near the top-left, 5% into the display +-- filepicker — float near the top-left, sized 5% of the display hl.window_rule({ name = "filepicker", match = { tag = "filepicker" }, float = true, move = "(monitor_w*0.05) (monitor_h*0.05)", + size = "(monitor_w*0.05) (monitor_h*0.05)", }) -- spotify floating