diff --git a/dotfiles/.config/hypr/layout/windowrules.lua b/dotfiles/.config/hypr/layout/windowrules.lua index a1c095d..791ea00 100644 --- a/dotfiles/.config/hypr/layout/windowrules.lua +++ b/dotfiles/.config/hypr/layout/windowrules.lua @@ -57,6 +57,11 @@ hl.window_rule({ name = "windowrule-24", tag = "+im", match = { class = "^(im.ri -- game tags hl.window_rule({ name = "windowrule-25", tag = "+games", match = { class = "^(gamescope)$" } }) hl.window_rule({ name = "windowrule-26", tag = "+games", match = { class = "^(steam_app_\\d+)$" } }) +-- While Sunshine is streaming, open Steam games fullscreen on the headless stream output +-- (workspace 9 -> HEADLESS-1). Old games like KOTOR fix their render size/scaling at launch +-- and never adapt to a later resize, so they must start there. Off by default (local play +-- unaffected); toggled by ~/.config/sunshine/scripts/sunshine-games.sh via the global. +SunshineGamesRule = hl.window_rule({ name = "sunshine-games", enabled = false, workspace = "9", fullscreen = true, match = { class = "^(steam_app_\\d+)$" } }) -- gamestore tags hl.window_rule({ name = "windowrule-27", tag = "+gamestore", match = { class = "^([Ss]team)$" } })