From 69c2195c1083a8539387e3de20d909ce4f56935e Mon Sep 17 00:00:00 2001 From: Rishabh Sarang <73608084+Rishabh-Sarang@users.noreply.github.com> Date: Fri, 24 Oct 2025 19:05:30 +0530 Subject: [PATCH] fix(hyprland): match Brave portal dialogs in floating-window rule (#2788) * fix(hyprland): match Brave portal dialogs in floating-window rule Brave on Wayland uses xdg-desktop-portal-gtk for permission and file dialogs. These windows use website-based titles (e.g. "chatgpt.com wants to open") instead of "Open File" or "Save File", so they were not matched by the floating-window rule. This commit expands the title regex to include those patterns, ensuring Brave dialogs float properly. * Shrink scope --------- Co-authored-by: David Heinemeier Hansson --- default/hypr/apps/system.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default/hypr/apps/system.conf b/default/hypr/apps/system.conf index fbddc65c..65f9d3ea 100644 --- a/default/hypr/apps/system.conf +++ b/default/hypr/apps/system.conf @@ -4,7 +4,7 @@ windowrule = center, tag:floating-window windowrule = size 800 600, tag:floating-window windowrule = tag +floating-window, class:(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|com.gabm.satty|Omarchy|About|TUI.float) -windowrule = tag +floating-window, class:(xdg-desktop-portal-gtk|sublime_text|DesktopEditors|org.gnome.Nautilus), title:^(Open.*Files?|Open [F|f]older.*|Save.*Files?|Save.*As|Save|All Files) +windowrule = tag +floating-window, class:(xdg-desktop-portal-gtk|sublime_text|DesktopEditors|org.gnome.Nautilus), title:^(Open.*Files?|Open [F|f]older.*|Save.*Files?|Save.*As|Save|All Files|.*wants to open.*|Choose application.*) windowrule = float, class:org.gnome.Calculator # Fullscreen screensaver