[Altair] Adds some window rules

This commit is contained in:
2026-06-04 11:41:26 -07:00
parent 8276c65d0f
commit 50b2993488

View File

@@ -20,21 +20,33 @@ hl.monitor({
transform = 0, transform = 0,
}) })
hl.window_rule({ local fullscreen_windows = { "^steam_app_\\d+$" }
for _, class in ipairs(fullscreen_windows) do
hl.window_rule({
name = "Fullscreen " .. class,
match = { match = {
class = "^steam_app_\\d+$", class = class,
}, },
fullscreen = true, fullscreen = true,
monitor = "DP-2", monitor = "DP-2",
center = true, center = true,
}) })
end
-- hl.window_rule({ match = { class = "suppress_event maximize" }, "match:class" = ".*" }) local maximized_windows = { "Slay the Spire" }
-- hl.window_rule({ match = { class = "fullscreen 1" }, "match:class" = "^steam_app_d+$" })
-- PATTERN: MERGED with line 208 for _, class in ipairs(maximized_windows) do
-- MIGRATION_WARNING: Window rule conflict for 'center on': 'match:class ^steam_app_d+$' (line 199) vs 'match:class Rofi' (line 208) hl.window_rule({
-- hl.window_rule({ match = { class = "center on" }, match:class = "^steam_app_d+$", match:class = "Rofi" }) name = "Maximize " .. class,
-- PATTERN: MERGED with line 202 match = {
class = class,
},
maximize = true,
monitor = "DP-2",
center = true,
})
end
-- MIGRATION_WARNING: Window rule conflict for 'monitor 1': 'match:title ^World of Warcraft$' (line 200) vs 'match:title ^Battle.net$' (line 202) -- MIGRATION_WARNING: Window rule conflict for 'monitor 1': 'match:title ^World of Warcraft$' (line 200) vs 'match:title ^Battle.net$' (line 202)
-- MIGRATION_WARNING: Window rule conflict for 'monitor 1': 'match:title ^World of Warcraft$' (line 200) vs 'match:title ^Balatro$' (line 204) -- MIGRATION_WARNING: Window rule conflict for 'monitor 1': 'match:title ^World of Warcraft$' (line 200) vs 'match:title ^Balatro$' (line 204)
-- MIGRATION_WARNING: Window rule conflict for 'monitor 1': 'match:title ^World of Warcraft$' (line 200) vs 'match:class steam_app_1091500' (line 206) -- MIGRATION_WARNING: Window rule conflict for 'monitor 1': 'match:title ^World of Warcraft$' (line 200) vs 'match:class steam_app_1091500' (line 206)