From 86d3f75d12416df4fa0c9caeca4724a428a09ae1 Mon Sep 17 00:00:00 2001 From: nahilrasheed <88521572+nahilrasheed@users.noreply.github.com> Date: Tue, 15 Jul 2025 14:34:44 +0300 Subject: [PATCH] hyprland: add window rules for xdg-portal file dialogs Add windowrulev2 entries for file picker dialogs with titles like "wants to save" and "wants to open" to float and center them. --- .config/hypr/hyprland/rules.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/hypr/hyprland/rules.conf b/.config/hypr/hyprland/rules.conf index 6b6922a5..aa9eb7e3 100644 --- a/.config/hypr/hyprland/rules.conf +++ b/.config/hypr/hyprland/rules.conf @@ -58,6 +58,8 @@ windowrulev2 = center, title:^(Open Folder)(.*)$ windowrulev2 = center, title:^(Save As)(.*)$ windowrulev2 = center, title:^(Library)(.*)$ windowrulev2 = center, title:^(File Upload)(.*)$ +windowrulev2 = center, title:^(.*)(wants to save)$ +windowrulev2 = center, title:^(.*)(wants to open)$ windowrulev2 = float, title:^(Open File)(.*)$ windowrulev2 = float, title:^(Select a File)(.*)$ windowrulev2 = float, title:^(Choose wallpaper)(.*)$ @@ -65,6 +67,8 @@ windowrulev2 = float, title:^(Open Folder)(.*)$ windowrulev2 = float, title:^(Save As)(.*)$ windowrulev2 = float, title:^(Library)(.*)$ windowrulev2 = float, title:^(File Upload)(.*)$ +windowrulev2 = float, title:^(.*)(wants to save)$ +windowrulev2 = float, title:^(.*)(wants to open)$ # --- Tearing ---