refactor: update windows rules to v3 for hyprland 0.53

This commit is contained in:
2026-01-04 22:54:45 +01:00
parent 7f029b8f9e
commit 4f8959aafb

View File

@@ -5,64 +5,45 @@
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# Gnome calulator is floating
windowrule = float, class:^(org.gnome.Calculator)$
windowrule = float on, match:class ^(org.gnome.Calculator)$
# Telegram is a floating
windowrule = float, class:^(org.telegram.desktop)$
windowrule = size 30% 94.5%, class:^(org.telegram.desktop)$
windowrule = move 100%-w-0.8% 4%, class:^(org.telegram.desktop)$
windowrule = float on, size (monitor_w*0.3) (monitor_h*0.945), move ((monitor_w*1)-window_w-(monitor_w*0.008)) ((monitor_h*0.04)), match:class ^(org.telegram.desktop)$
# dnSpy needs to be tiled
windowrule = tile, class:^(dnspy.exe)$
windowrule = tile on, match:class ^(dnspy.exe)$
# jetbrains ide fix
windowrule = nofocus,class:^jetbrains-(?!toolbox),floating:1,title:^win\d+$
windowrule = no_focus on, match:class ^jetbrains-(?!toolbox), match:float 1, match:title ^win\d+$
# xwaylandvideobridge fix
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, no_anim on, no_initial_focus on, max_size 1 1, no_blur on, no_focus on, match:class ^(xwaylandvideobridge)$
# ida window rule for tiling
windowrule = focusonactivate 0, class:^(IDA)$
windowrule = focus_on_activate 0, match:class ^(IDA)$
# Thunderbird compose new mail is floating
windowrule = float,class:(thunderbird),title:(Write.*)
windowrule = size 1000 800,class:(thunderbird),title:(Write.*)
windowrule = float on, size 1000 800, match:class (thunderbird), match:title (Write.*)
# gdb pwntools window rule to open on the right
#windowrule=tile,title:gdb-pwntools
windowrule = opacity 0.9 override 0.8 override,class:^(kitty)$ # set opacity to 0.9 active and 0.8 inactive for kitty
windowrule = opacity 0.9 override 0.8 override, match:class ^(kitty)$ # set opacity to 0.9 active and 0.8 inactive for kitty
# MATLAB
windowrule = tile, title:(MATLAB [\w\d]* - academic use)$
windowrule = nofocus, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(Command HistoryWindow)$
windowrule = noborder, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(Command HistoryWindow)$
windowrule = opacity 1.0 override, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(Command HistoryWindow)$
windowrule = tile on, match:title (MATLAB [\w\d]* - academic use)$
windowrule = no_focus on, border_size 0, opacity 1.0 override, match:class ^(MATLAB [\w\d]* - academic use)$, match:title ^(Command HistoryWindow)$
#windowrule = nofocus, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(TabCompletionPopup)$
#windowrule = noborder, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(TabCompletionPopup)$
#windowrule = opacity 1.0 override, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(TabCompletionPopup)$
#windowrule = no_focus on, border_size 0, opacity 1.0 override, match:class ^(MATLAB [\w\d]* - academic use)$, match:title ^(TabCompletionPopup)$
#windowrule = no_focus on, border_size 0, opacity 1.0 override, match:class ^(MATLAB [\w\d]* - academic use)$, match:title ^(FunctionHints)$
#windowrule = nofocus, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(FunctionHints)$
#windowrule = noborder, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(FunctionHints)$
#windowrule = opacity 1.0 override, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(FunctionHints)$
windowrule = nofocus, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(DefaultOverlayManager\.JWindow)$
windowrule = no_focus on, match:class ^(MATLAB [\w\d]* - academic use)$, match:title ^(DefaultOverlayManager\.JWindow)$
# Rofi blur
layerrule = blur, rofi
layerrule = ignorezero,rofi
layerrule = dimaround,rofi
layerrule = blur on, ignore_alpha 0, dim_around on, match:namespace rofi
# Waybar blur
layerrule = blur, waybar
layerrule = ignorezero,waybar
layerrule = blur on, ignore_alpha 0, match:namespace waybar
layerrule = blur on, animation slide, ignore_alpha 0, match:namespace notifications
layerrule = blur, notifications
layerrule = animation slide, notifications
layerrule = ignorezero,notifications