changed the rules thing

This commit is contained in:
2026-05-27 11:41:15 +01:00
parent 48ab194fdb
commit 78164cb4a4

View File

@@ -27,18 +27,19 @@ hl.window_rule({
-- Define windows that float -- Define windows that float
local standardFloatingWindows = { local standardFloatingWindows = {
{ class = "^(xdg-desktop-portal-gtk)$" }, { class = "xdg-desktop-portal-gtk" },
{ class = "^(firefox)$", title = "^(.*Save.*)" }, { class = "org.pulseaudio.pavucontrol" },
{ class = "firefox", title = ".*Save.*" },
} }
-- For every window that floats make a rule -- For every window that floats make a rule
for _, window in ipairs(standardFloatingWindows) do for _, window in ipairs(standardFloatingWindows) do
hl.window_rule({ hl.window_rule({
name = "float file selector", name = ("float " .. window.class),
match = { match = {
-- both are optional ig -- both are optional ig
class = window.class or "", class = ("^(" .. (window.class or "") .. ")$"),
title = window.title or "", title = ("^(" .. (window.title or "") .. ")"),
}, },
float = true, float = true,
animation = "popin 70%", animation = "popin 70%",