From 128e0901659db057474ccd905d0c2b3b802d4dd8 Mon Sep 17 00:00:00 2001 From: Josh LeBlanc Date: Tue, 26 Aug 2025 07:10:24 -0300 Subject: [PATCH] include more chromium browsers in chromium rules (#1090) * include more chromium browsers in chromium rules * Use tag to avoid declaring the match twice * Fix the match to actual browser class names as reported by hyprctl clients --------- Co-authored-by: David Heinemeier Hansson --- default/hypr/apps/chromium.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/default/hypr/apps/chromium.conf b/default/hypr/apps/chromium.conf index 67d94210..0c70d80c 100644 --- a/default/hypr/apps/chromium.conf +++ b/default/hypr/apps/chromium.conf @@ -1,6 +1,8 @@ -# Force chromium into a tile to deal with --app bug -windowrule = tile, class:^(Chromium)$ +windowrule = tag +chromium-based-browser, class:([cC]hrom(e|ium)|[bB]rave-browser|Microsoft-edge|Vivaldi-stable) -# Only slight opacity when unfocused -windowrule = opacity 1 0.97, class:^(Chromium|chromium|google-chrome|google-chrome-unstable|Brave-browser|brave-browser)$ -windowrule = opacity 1 1, initialTitle:(youtube.com_/|app.zoom.us_/wc/home) +# Force chromium-based browsers into a tile to deal with --app bug +windowrule = tile, tag:chromium-based-browser + +# Only a subtle opacity change, but not for video sites +windowrule = opacity 1 0.97, tag:chromium-based-browser +windowrule = opacity 1.0 1.0, initialTitle:(youtube\.com_/|app\.zoom\.us_/wc/home)