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 <noreply@anthropic.com>
feat/astal-menu
Amir Alexander Abdelbaki 2026-07-04 14:58:06 +02:00
parent d9e6ee0f10
commit 54338f3602
1 changed files with 2 additions and 1 deletions

View File

@ -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