From a6dee77f586a655e2edaa1d07f2d9ee479714517 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 12 May 2026 01:10:50 -0700 Subject: [PATCH] [Hyprland] Suppress Flameshot overlay effects --- dotfiles/config/hypr/hyprland/settings.lua | 19 +++++++++++++++++++ .../hyprland-config-syntax/smoke-test.lua | 1 + 2 files changed, 20 insertions(+) diff --git a/dotfiles/config/hypr/hyprland/settings.lua b/dotfiles/config/hypr/hyprland/settings.lua index af88db66..d20166c6 100644 --- a/dotfiles/config/hypr/hyprland/settings.lua +++ b/dotfiles/config/hypr/hyprland/settings.lua @@ -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", diff --git a/nixos/checks/hyprland-config-syntax/smoke-test.lua b/nixos/checks/hyprland-config-syntax/smoke-test.lua index 724fc0d0..6da622cb 100644 --- a/nixos/checks/hyprland-config-syntax/smoke-test.lua +++ b/nixos/checks/hyprland-config-syntax/smoke-test.lua @@ -64,6 +64,7 @@ hl = { monitor = noop, workspace_rule = noop, window_rule = noop, + layer_rule = noop, dsp = setmetatable({ group = dispatcher_namespace(), window = dispatcher_namespace(),