[Hyprland] Improve windowrules

This commit is contained in:
2025-10-30 10:24:04 +01:00
parent 499bf793b2
commit 5ba2894101

View File

@@ -1,17 +1,3 @@
# ────────────────────────────────────────────────────────────────────
# ╭────────────────────────────────────────────────╮
# │ WORKSPACE RULES │
# ╰────────────────────────────────────────────────╯
# ────────────────────────────────────────────────────────────────────
# Display full sized (without gaps), if only window on screen
# workspace = w[tv1], gapsout:0, gapsin:0
# workspace = f[1], gapsout:0, gapsin:0
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
# windowrule = rounding 0, floating:0, onworkspace:f[1]
$mainMod = SUPER $mainMod = SUPER
# ──────────────────────────────────────────────────────────────────── # ────────────────────────────────────────────────────────────────────
@@ -19,9 +5,9 @@ $mainMod = SUPER
# │ WINDOW RULES │ # │ WINDOW RULES │
# ╰────────────────────────────────────────────────╯ # ╰────────────────────────────────────────────────╯
# ──────────────────────────────────────────────────────────────────── # ────────────────────────────────────────────────────────────────────
windowrule = move 1450 50, title:^(.*)(Power menu)$ windowrule = move 1450 50, title:(.*)Power menu$
windowrule = workspace 2, class:evince windowrule = workspace 2, class:evince
windowrule = workspace 2, title:.*(Okular).* windowrule = workspace 2, title:.*Okular.*
windowrule = workspace 2, class:org.pwmt.zathura windowrule = workspace 2, class:org.pwmt.zathura
windowrule = fullscreen, title:wlogout windowrule = fullscreen, title:wlogout
windowrule = workspace 2, class:librewolf windowrule = workspace 2, class:librewolf
@@ -30,7 +16,7 @@ windowrule = workspace 2, title:BSManager
windowrule = workspace 1, title:ALVR(.*) windowrule = workspace 1, title:ALVR(.*)
windowrule = workspace 2, title:(.*)Beat Saber(.*) windowrule = workspace 2, title:(.*)Beat Saber(.*)
windowrule = fullscreen, title:(.*)Beat Saber(.*) windowrule = fullscreen, title:(.*)Beat Saber(.*)
windowrule = workspace 2, title:(.*)(Discord)(.*) windowrule = workspace 2, title:(.*)Discord(.*)
windowrule = workspace 3, title:^(Steam)(.*)$ windowrule = workspace 3, title:^(Steam)(.*)$
windowrule = workspace 1, title:(.*)(VSCodium)$ windowrule = workspace 1, title:(.*)(VSCodium)$
windowrule = center, title:^(.*)(VSCodium)$ windowrule = center, title:^(.*)(VSCodium)$
@@ -112,6 +98,7 @@ windowrule = center, class:pavucontrol
windowrule = float, class:file-roller windowrule = float, class:file-roller
windowrule = center, class:file-roller windowrule = center, class:file-roller
# idleinhibit
windowrule = idleinhibit focus, title:^(Rocket League)(.*)$ windowrule = idleinhibit focus, title:^(Rocket League)(.*)$
windowrule = fullscreen, title:^(Steam Big Picture)$ windowrule = fullscreen, title:^(Steam Big Picture)$
windowrule = idleinhibit always, class:steam windowrule = idleinhibit always, class:steam
@@ -121,9 +108,14 @@ windowrule = idleinhibit focus, class:supertuxkart
windowrule = idleinhibit fullscreen, title:^(.*)(Discord)(.*)$ windowrule = idleinhibit fullscreen, title:^(.*)(Discord)(.*)$
windowrule = idleinhibit fullscreen, title:^(.*)(~)(.*)$ windowrule = idleinhibit fullscreen, title:^(.*)(~)(.*)$
# Do not screenshare bitwarden windows
windowrule = noscreenshare, title:(.*)(Bitwarden)(.*)
windowrule = noscreenshare, class:nm-connection-editor
windowrule = noscreenshare, title:(.*)(secret)(.*)
windowrule = noscreenshare, class:(.*)[aA]uthentication(.*)
# ┌ ┐ # ┌ ┐
# │ Layer rules │ # │ Layer rules │
# └ ┘ # └ ┘
layerrule = dimaround, ^(rofi) layerrule = dimaround, ^(rofi)
layerrule = blurpopups, ^(bar)