Feature: Open Steam games on headless output while Sunshine streams
Disabled-by-default window rule that sends steam_app windows fullscreen to workspace 9 (HEADLESS-1), toggled by sunshine-games.sh, so old games like KOTOR start at the stream's resolution.
This commit is contained in:
@@ -57,6 +57,11 @@ hl.window_rule({ name = "windowrule-24", tag = "+im", match = { class = "^(im.ri
|
|||||||
-- game tags
|
-- game tags
|
||||||
hl.window_rule({ name = "windowrule-25", tag = "+games", match = { class = "^(gamescope)$" } })
|
hl.window_rule({ name = "windowrule-25", tag = "+games", match = { class = "^(gamescope)$" } })
|
||||||
hl.window_rule({ name = "windowrule-26", tag = "+games", match = { class = "^(steam_app_\\d+)$" } })
|
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
|
-- gamestore tags
|
||||||
hl.window_rule({ name = "windowrule-27", tag = "+gamestore", match = { class = "^([Ss]team)$" } })
|
hl.window_rule({ name = "windowrule-27", tag = "+gamestore", match = { class = "^([Ss]team)$" } })
|
||||||
|
|||||||
Reference in New Issue
Block a user