diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-01-10 01:06:20 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-01-10 01:06:20 +0100 |
| commit | 6055e098fe20a262f1d155da6d4d83ad0d9d73a5 (patch) | |
| tree | c1b689eb99ab11015ae20152beb4eee2e7710cf6 | |
| parent | 4919d96007d0d55aebaca6d9e73d2ee3cd193a9a (diff) | |
Add window rules for browsers and pic-in-pic modes
| -rw-r--r-- | roles/hyprland/templates/hyprland/rules.conf.j2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/hyprland/templates/hyprland/rules.conf.j2 b/roles/hyprland/templates/hyprland/rules.conf.j2 index 5d4be853..81c0e89b 100644 --- a/roles/hyprland/templates/hyprland/rules.conf.j2 +++ b/roles/hyprland/templates/hyprland/rules.conf.j2 @@ -10,3 +10,17 @@ windowrule = size 875 600, match:tag floating-window windowrule = tag +floating-window, match:class (work.kartoffln.bluetui|work.kartoffln.btop|work.kartoffln.wlctl) windowrule = tag +floating-window, match:class (work.kartoffln.wiremix) windowrule = float on, match:class org.gnome.Calculator + +# Picture-in-picture overlays +windowrule = tag +pic-in-pic, match:title (Picture.?in.?[Pp]icture) +windowrule = float on, match:tag pic-in-pic +windowrule = pin on, match:tag pic-in-pic +windowrule = size 600 338, match:tag pic-in-pic +windowrule = opacity 1.0 override 1.0 override, match:tag pic-in-pic +windowrule = move (monitor_w-window_w-40) (monitor_h*0.04), match:tag pic-in-pic + +# Browser types +windowrule = tag +chromium-based-browser, match:class ((google-)?[cC]hrom(e|ium)|[bB]rave-browser|[mM]icrosoft-edge|Vivaldi-stable|helium) +windowrule = tag +firefox-based-browser, match:class ([fF]irefox|zen|librewolf) +windowrule = opacity 1.0 override 0.97 override, match:tag chromium-based-browser +windowrule = opacity 1.0 override 0.97 override, match:tag firefox-based-browser |
