From 814315f7f1c254dc3f2d19085a1ec50c428da061 Mon Sep 17 00:00:00 2001 From: Mark Dickie Date: Sat, 3 Jan 2026 23:33:11 +0100 Subject: [PATCH] Updated window rules for hyprland --- modules/home-manager/hyprland/windows.nix | 37 ++++++++--------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/modules/home-manager/hyprland/windows.nix b/modules/home-manager/hyprland/windows.nix index 1460a1c..8bbb1f3 100644 --- a/modules/home-manager/hyprland/windows.nix +++ b/modules/home-manager/hyprland/windows.nix @@ -5,50 +5,37 @@ wayland.windowManager.hyprland.settings = { windowrule = [ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more - "suppressevent maximize, class:.*" + "match:class *, suppress_event maximize" - # Force chromium into a tile to deal with --app bug - "tile, class:^(chromium)$" # Settings management - "float, class:^(org.pulseaudio.pavucontrol|blueberry.py)$" - - # Float Steam, fullscreen RetroArch - "float, class:^(steam)$" - "fullscreen, class:^(com.libretro.RetroArch)$" + "match:class ^(org.pulseaudio.pavucontrol|blueberry.py)$, float" # Just dash of transparency - "opacity 0.97 0.9, class:.*" + "match:class *, opacity 0.97 0.9" # Opacity for scratchpad - "opacity 0.8 0.8, class:^(com.markd.termscratch|com.markd.taskscratch|com.markd.timrscratch)$" - # Normal chrome Youtube tabs - "opacity 1 1, class:^(chromium|google-chrome|google-chrome-unstable)$, title:.*Youtube.*" - "opacity 1 0.97, class:^(chromium|google-chrome|google-chrome-unstable)$" - "opacity 0.97 0.9, initialClass:^(chrome-.*-Default)$ # web apps" - "opacity 1 1, initialClass:^(chrome-youtube.*-Default)$ # Youtube" - "opacity 1 1, class:^(zoom|vlc|org.kde.kdenlive|com.obsproject.Studio)$" - "opacity 1 1, class:^(com.libretro.RetroArch|steam)$" + "match:class ^(com.markd.termscratch|com.markd.taskscratch|com.markd.timrscratch)$, opacity 0.8 0.8" # Zed editor rules - "group, class:^(dev.zed.Zed)$" + "match:class ^(dev.zed.Zed)$, group" # Image viewer rules - "float, class:swayimg" + "match:class swayimg, float" # Fix some dragging issues with XWayland - "nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0" + #"nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0" # Float in the middle for clipse clipboard manager - "float, class:(com.markd.clipse|com.markd.nmtui)" - "size 1433 744, class:(com.markd.clipse|com.markd.nmtui)" - "stayfocused, class:(com.markd.clipse|com.markd.nmtui)" + "match:class ^(com.markd.clipse|com.markd.nmtui)$, float" + "match:class ^(com.markd.clipse|com.markd.nmtui)$, size 1433 744" + "match:class ^(com.markd.clipse|com.markd.nmtui)$, stayfocused" ]; layerrule = [ # Proper background blur for wofi - "blur,wofi" - "blur,waybar" + "match:namespace wofi, blur" + "match:namespace waybar, blur" ]; }; } -- 2.51.2