[Hyprland] Adds window rules and introduces per-system config.
This commit is contained in:
@@ -84,35 +84,8 @@ hl.device({
|
||||
sensitivity = -0.200000,
|
||||
})
|
||||
|
||||
-- for i = 1, 10 do
|
||||
-- hl.workspace_rule({ workspace = i, monitor = "DP-1", default_name = "L" .. tostring(i) })
|
||||
-- hl.workspace_rule({ workspace = i + 10, monitor = "DP-1", default_name = "R" .. tostring(i) })
|
||||
-- end
|
||||
|
||||
hl.window_rule({ match = "match:class Rofi", stay_focused = true })
|
||||
-- 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
|
||||
-- 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)
|
||||
-- hl.window_rule({
|
||||
-- match = { class = "monitor 1" },
|
||||
-- match:title = "^World of Warcraft$",
|
||||
-- match:title = "^Battle.net$",
|
||||
-- match:title = "^Balatro$",
|
||||
-- match:class = "steam_app_1091500",
|
||||
-- })
|
||||
-- PATTERN: MERGED with line 207
|
||||
-- MIGRATION_WARNING: Window rule conflict for 'fullscreen on': 'match:title ^World of Warcraft$' (line 201) vs 'match:class steam_app_1091500' (line 207)
|
||||
-- hl.window_rule({ match = { class = "fullscreen on" }, match:title = "^World of Warcraft$", match:class = "steam_app_1091500" })
|
||||
-- hl.window_rule({ match = { class = "float on" }, match:title = "^Battle.net$" })
|
||||
-- hl.window_rule({ match = { class = "tile on" }, match:title = "^Balatro$" })
|
||||
|
||||
-- Additional configs
|
||||
require("config.autostart")
|
||||
require("config.binds")
|
||||
require("config.animation")
|
||||
require("config.windows")
|
||||
|
||||
20
home-manager/features/hypr/config/windows.lua
Normal file
20
home-manager/features/hypr/config/windows.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "Rofi",
|
||||
},
|
||||
stay_focused = true,
|
||||
})
|
||||
|
||||
-- Set border color to red if window is fullscreen
|
||||
hl.window_rule({
|
||||
match = { fullscreen = true },
|
||||
border_color = "rgb(FF0000) rgb(880808)",
|
||||
})
|
||||
|
||||
-- Suppress maximize events
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = ".*",
|
||||
},
|
||||
suppress_event = "maximize",
|
||||
})
|
||||
@@ -47,7 +47,6 @@
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
require("monitors")
|
||||
require("config.hyprland")
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user