1 parent
80ec3dfdd3
commit
079cceb554
57 files changed
+4092
-538
No files matched your search
@@ -87,3 +87,41 @@ hl.window_rule({
|
||||
|
||||
float = true,
|
||||
})
|
||||
|
||||
-- Proton games map as XWayland windows of class steam_app_<id>, but so do the
|
||||
-- launchers, installers and tools that run in the same prefix (Paradox,
|
||||
-- Rockstar, EA app, Ubisoft Connect, redistributable setups, crash reporters),
|
||||
-- so the class alone cannot tell them apart; the title does. Static rules run
|
||||
-- once, when the window maps: a launcher that sets its title later counts as a
|
||||
-- game. Native Linux Steam games do not use this class and are not covered.
|
||||
local protonClass = "^steam_app_\\d+$"
|
||||
local launcherTitle = "(?i).*("
|
||||
.. "launch(er|ing)|setup|install|updat|redistributable|config|settings"
|
||||
.. "|\\berrors?\\b|crash(ed| ?report| ?handler|pad)|eula|licen[cs]e agreement"
|
||||
.. "|\\bea app\\b|ubisoft connect|\\buplay\\b|social club|battle\\.net|gog galaxy"
|
||||
.. ").*"
|
||||
|
||||
-- Games start fullscreen. float = false skips windows Hyprland floats on its own
|
||||
-- (dialogs, transient and fixed-size windows, menus, tooltips); the negated
|
||||
-- title skips launchers. A game can still leave fullscreen through its own
|
||||
-- settings: suppress_event is deliberately not set.
|
||||
hl.window_rule({
|
||||
name = "steam-games-fullscreen",
|
||||
match = {
|
||||
class = protonClass,
|
||||
title = "negative:" .. launcherTitle,
|
||||
float = false,
|
||||
},
|
||||
|
||||
fullscreen = true,
|
||||
})
|
||||
|
||||
-- Launchers and popups of those games float in the middle of the screen. Same
|
||||
-- title regex as above, not negated, so the two rules never match one window.
|
||||
hl.window_rule({
|
||||
name = "steam-games-launchers",
|
||||
match = { class = protonClass, title = launcherTitle },
|
||||
|
||||
float = true,
|
||||
center = true,
|
||||
})
|
||||
Reference in new issue
Block a user