From fb09f088a9319259febd0f13b81cc44ecbe4d19d Mon Sep 17 00:00:00 2001 From: Ottatop Date: Thu, 7 Sep 2023 20:59:22 -0500 Subject: [PATCH] Explain placement of window.rules.add() --- api/lua/example_config.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/lua/example_config.lua b/api/lua/example_config.lua index 96c9e09..e499b87 100644 --- a/api/lua/example_config.lua +++ b/api/lua/example_config.lua @@ -95,6 +95,11 @@ require("pinnacle").setup(function(pinnacle) -- Window rules -- Add your own window rules here. Below is an example. -- + -- These currently need to be added inside of `connect_for_all` because + -- it only runs after the whole config is parsed, so any specified tags won't be availible outside + -- of this function. This means that if you have multiple monitors, + -- these rules will be duplicated unless you write in some logic to prevent that. + -- -- window.rules.add({ -- cond = { class = "kitty" }, -- rule = { size = { 300, 300 }, location = { 50, 50 } },