53 lines
1.4 KiB
Lua
53 lines
1.4 KiB
Lua
-- modules/window_rules.lua
|
|
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
|
|
|
|
-- Suppress maximize events from all apps
|
|
hl.window_rule({
|
|
name = "suppress-maximize-events",
|
|
match = { class = ".*" },
|
|
suppress_event = "maximize",
|
|
})
|
|
|
|
-- Fix XWayland drag issues
|
|
hl.window_rule({
|
|
name = "fix-xwayland-drags",
|
|
match = {
|
|
class = "^$",
|
|
title = "^$",
|
|
xwayland = true,
|
|
float = true,
|
|
fullscreen = false,
|
|
pin = false,
|
|
},
|
|
no_focus = true,
|
|
})
|
|
|
|
-- hyprland-run float position
|
|
hl.window_rule({
|
|
name = "move-hyprland-run",
|
|
match = { class = "hyprland-run" },
|
|
move = "20 monitor_h-120",
|
|
float = true,
|
|
})
|
|
|
|
-- Layer rules (example, disabled by default):
|
|
-- local overlayLayerRule = hl.layer_rule({
|
|
-- name = "no-anim-overlay",
|
|
-- match = { namespace = "^my-overlay$" },
|
|
-- no_anim = true,
|
|
-- })
|
|
-- overlayLayerRule:set_enabled(false)
|
|
|
|
-- Workspace smart-gaps (uncomment all three blocks to enable):
|
|
-- hl.workspace_rule({ workspace = "w[tv1]", gaps_out = 0, gaps_in = 0 })
|
|
-- hl.workspace_rule({ workspace = "f[1]", gaps_out = 0, gaps_in = 0 })
|
|
-- hl.window_rule({
|
|
-- name = "no-gaps-wtv1",
|
|
-- match = { float = false, workspace = "w[tv1]" },
|
|
-- border_size = 0, rounding = 0,
|
|
-- })
|
|
-- hl.window_rule({
|
|
-- name = "no-gaps-f1",
|
|
-- match = { float = false, workspace = "f[1]" },
|
|
-- border_size = 0, rounding = 0,
|
|
-- })
|