From b2cda94362b933a38a9ac68e903c5db03d3d0bda Mon Sep 17 00:00:00 2001 From: sudacode Date: Thu, 20 Nov 2025 12:26:07 -0800 Subject: [PATCH] update window rules to new format --- .config/hypr/hyprland.conf | 71 +++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 39 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 827ab9b..b989d3f 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -252,51 +252,44 @@ misc { # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules -# Example windowrule v1 -# windowrulev2 = float, class:com.mitchellh.ghostty -windowrule = float, class:discord -windowrule = float, class:mpv -windowrule = float, class:steam -windowrule = float, class:anki -windowrule = float, class:python, title:Import -windowrule = workspace 10 silent, class:discord -windowrule = workspace 9 silent, class:steam -windowrule = size 2118 1182, class:anki -windowrule = workspace 8 silent, class:anki -# windowrule = opacity 0.88, class:.* fullscreen:0 -windowrule = opacity 1.0 override, class:mpv -windowrule = opacity 1.0 override, title:(.*)asbplayer -windowrule = tile, title:(.*)asbplayer -windowrule = opacity 1.0 override, class:^(remote-viewer)$ -windowrule = opacity 1.0 override, class:com.obsproject.Studio -windowrule = opacity 1.0 override, title:(.*)(- YouTube(.*)) -windowrule = opacity 1.0 override, class:zen, title:(.*)YouTube TV(.*) -windowrule = opacity 1.0 override, class:anki - - -# Example windowrule v2 -# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ - +# windowrule = match:class my-window, border_size 10 +windowrule = float on, match:class discord +windowrule = float on, match:class mpv +windowrule = float on, match:class steam +windowrule = float on, match:class anki +windowrule = float on, match:class python, match:title Import +windowrule = workspace 10 silent, match:class discord +windowrule = workspace 9 silent, match:class steam +windowrule = workspace 8 silent, match:class anki +windowrule = size 2118 1182, match:class anki +# windowrule = opacity 0.88, match:class .* fullscreen:0 +windowrule = opacity 1.0 override, match:class mpv +windowrule = opacity 1.0 override, match:title (.*)asbplayer +windowrule = tile on, match:title (.*)asbplayer +windowrule = opacity 1.0 override, match:class ^(remote-viewer)$ +windowrule = opacity 1.0 override, match:class com.obsproject.Studio +windowrule = opacity 1.0 override, match:title (.*)(- YouTube(.*)) +windowrule = opacity 1.0 override, match:class zen, match:title (.*)YouTube TV(.*) +windowrule = opacity 1.0 override, match:class anki # Ignore maximize requests from apps. You'll probably like this. -windowrule = suppressevent maximize, class:.* - +windowrule = suppress_event maximize, match:class .* # Fix some dragging issues with XWayland -windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 - -# https://github.com/hyprwm/Hyprland/issues/3835#issuecomment-2004448245 -windowrule = suppressevent maximize, class:^(zen)$ -exec-once = $HOME/.local/bin/bitwarden-nofloat.sh -# ENABLE_HDR_WSI=1 mpv --vo=gpu-next --target-colorspace-hint --gpu-api=vulkan --gpu-context=waylandvk "filename" +windowrule = no_focus on,match:class ^$,match:title ^$,match:xwayland 1,match:float 1,match:fullscreen 0,match:pin 0 # {{{ Screen sharing workaround: https://wiki.hyprland.org/Useful-Utilities/Screen-Sharing/#xwayland -windowrule = opacity 0.0 override, class:^(xwaylandvideobridge)$ -windowrule = noanim, class:^(xwaylandvideobridge)$ -windowrule = noinitialfocus, class:^(xwaylandvideobridge)$ -windowrule = maxsize 1 1, class:^(xwaylandvideobridge)$ -windowrule = noblur, class:^(xwaylandvideobridge)$ -windowrule = nofocus, class:^(xwaylandvideobridge)$ +windowrule = opacity 0.0 override, match:class ^(xwaylandvideobridge)$ +windowrule = no_anim on, match:class ^(xwaylandvideobridge)$ +windowrule = no_initial_focus on, match:class ^(xwaylandvideobridge)$ +windowrule = max_size 1 1, match:class ^(xwaylandvideobridge)$ +windowrule = no_blur on, match:class ^(xwaylandvideobridge)$ +windowrule = no_focus on, match:class ^(xwaylandvideobridge)$ # }}} +debug { + disable_logs = true + enable_stdout_logs = false +} + plugin { split-monitor-workspaces {