From 78164cb4a4f7b3e4b43acef4033eca3aa309a345 Mon Sep 17 00:00:00 2001 From: voidarc Date: Wed, 27 May 2026 11:41:15 +0100 Subject: [PATCH] changed the rules thing --- modules/rules.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/rules.lua b/modules/rules.lua index bd05ed6..203f5f1 100644 --- a/modules/rules.lua +++ b/modules/rules.lua @@ -27,18 +27,19 @@ hl.window_rule({ -- Define windows that float local standardFloatingWindows = { - { class = "^(xdg-desktop-portal-gtk)$" }, - { class = "^(firefox)$", title = "^(.*Save.*)" }, + { class = "xdg-desktop-portal-gtk" }, + { class = "org.pulseaudio.pavucontrol" }, + { class = "firefox", title = ".*Save.*" }, } -- For every window that floats make a rule for _, window in ipairs(standardFloatingWindows) do hl.window_rule({ - name = "float file selector", + name = ("float " .. window.class), match = { -- both are optional ig - class = window.class or "", - title = window.title or "", + class = ("^(" .. (window.class or "") .. ")$"), + title = ("^(" .. (window.title or "") .. ")"), }, float = true, animation = "popin 70%",