[Hyprland] Suppress Flameshot overlay effects

This commit is contained in:
2026-05-12 01:10:50 -07:00
parent 3e0b8873e5
commit a6dee77f58
2 changed files with 20 additions and 0 deletions

View File

@@ -164,6 +164,25 @@ function M.setup(ctx)
hl.window_rule({ match = { title = "^(Open File)$" }, float = true })
hl.window_rule({ match = { title = "^(Save File)$" }, float = true })
hl.window_rule({ match = { title = "^(Confirm)$" }, float = true })
for index, match in ipairs({
{ class = "^(flameshot)$" },
{ title = "^(flameshot)$" },
}) do
hl.window_rule({
name = "flameshot-overlay-" .. tostring(index),
match = match,
float = true,
no_anim = true,
suppress_event = "fullscreen",
})
end
hl.layer_rule({
name = "flameshot-layer-overlay",
match = { namespace = "^(flameshot)$" },
no_anim = true,
})
hl.window_rule({
match = { class = "^(com\\.mitchellh\\.ghostty\\.dropdown)$" },
animation = "slide top",

View File

@@ -64,6 +64,7 @@ hl = {
monitor = noop,
workspace_rule = noop,
window_rule = noop,
layer_rule = noop,
dsp = setmetatable({
group = dispatcher_namespace(),
window = dispatcher_namespace(),