diff --git a/system/hosts/altair/hyprland.lua b/system/hosts/altair/hyprland.lua index 96cbde4..e62b6ad 100644 --- a/system/hosts/altair/hyprland.lua +++ b/system/hosts/altair/hyprland.lua @@ -20,21 +20,33 @@ hl.monitor({ transform = 0, }) -hl.window_rule({ - match = { - class = "^steam_app_\\d+$", - }, - fullscreen = true, - monitor = "DP-2", - center = true, -}) +local fullscreen_windows = { "^steam_app_\\d+$" } --- hl.window_rule({ match = { class = "suppress_event maximize" }, "match:class" = ".*" }) --- hl.window_rule({ match = { class = "fullscreen 1" }, "match:class" = "^steam_app_d+$" }) --- PATTERN: MERGED with line 208 --- MIGRATION_WARNING: Window rule conflict for 'center on': 'match:class ^steam_app_d+$' (line 199) vs 'match:class Rofi' (line 208) --- hl.window_rule({ match = { class = "center on" }, match:class = "^steam_app_d+$", match:class = "Rofi" }) --- PATTERN: MERGED with line 202 +for _, class in ipairs(fullscreen_windows) do + hl.window_rule({ + name = "Fullscreen " .. class, + match = { + class = class, + }, + fullscreen = true, + monitor = "DP-2", + center = true, + }) +end + +local maximized_windows = { "Slay the Spire" } + +for _, class in ipairs(maximized_windows) do + hl.window_rule({ + name = "Maximize " .. class, + match = { + class = class, + }, + maximixe = 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 ^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)