From 53336e21b1479d57d31fb7e853ec2259c2140572 Mon Sep 17 00:00:00 2001 From: Hendrik Bergunde Date: Sat, 18 Oct 2025 16:17:23 +0200 Subject: [PATCH] Fix google-chrome opacity in hyprland (#2526) Google Chrome reports itself as google-chrome in `hyprctl clients` but the matching for the windowrule did not work, probably because since hyprland 0.46.0 the regex matching needs to span the entire string. This change makes "google-chrome" get recognized so that windows of that browser receive the chromium-based-browser tag, which in turn provides better opacity settings for Chrome windows. Since "chrome" was matched by the regex before, this fix now should restore the originally intended behavior for Google Chrome. Co-authored-by: David Heinemeier Hansson --- default/hypr/apps/browser.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default/hypr/apps/browser.conf b/default/hypr/apps/browser.conf index b6df0072..cf9ae193 100644 --- a/default/hypr/apps/browser.conf +++ b/default/hypr/apps/browser.conf @@ -1,5 +1,5 @@ # Browser types -windowrule = tag +chromium-based-browser, class:([cC]hrom(e|ium)|[bB]rave-browser|Microsoft-edge|Vivaldi-stable|helium) +windowrule = tag +chromium-based-browser, class:((google-)?[cC]hrom(e|ium)|[bB]rave-browser|Microsoft-edge|Vivaldi-stable|helium) windowrule = tag +firefox-based-browser, class:([fF]irefox|zen|librewolf) # Force chromium-based browsers into a tile to deal with --app bug