tweaked window rules

This commit is contained in:
2026-07-19 12:59:29 -05:00
parent 49ab25459c
commit 381e7dc4e6

View File

@@ -221,36 +221,37 @@ hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
--------------------------------
-- Fix some dragging issues with XWayland
hl.window_rule({
name = "fix-xwayland-drags",
match = {
class = "^$",
title = "^$",
xwayland = true,
float = true,
fullscreen = false,
pin = false,
},
no_focus = true,
})
hl.window_rule({
name = "move-hyprland-run",
match = { class = "hyprland-run" },
move = "20 monitor_h-120",
float = true,
})
-- hl.window_rule({
-- name = "fix-xwayland-drags",
-- match = {
-- class = "^$",
-- title = "^$",
-- xwayland = true,
-- float = true,
-- fullscreen = false,
-- pin = false,
-- },
-- no_focus = true,
-- })
--
-- hl.window_rule({
-- name = "move-hyprland-run",
-- match = { class = "hyprland-run" },
-- move = "20 monitor_h-120",
-- float = true,
-- })
-- auto size windows on workspace 10
hl.window_rule({
name = "second_monitor",
match = { workspace = 10 },
float = true,
size = {"monitor_w - 8", 850},
move = {4, 500},
move = {4, "monitor_h - 852"},
opacity = "1.0 override 0.9 override",
})
-- force workspace 10 on second monitor
hl.workspace_rule({
workspace = "10",
monitor = "HDMI-A-1",