Explain placement of window.rules.add()

This commit is contained in:
Ottatop 2023-09-07 20:59:22 -05:00
parent 7d2849abac
commit fb09f088a9

View file

@ -95,6 +95,11 @@ require("pinnacle").setup(function(pinnacle)
-- Window rules -- Window rules
-- Add your own window rules here. Below is an example. -- 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({ -- window.rules.add({
-- cond = { class = "kitty" }, -- cond = { class = "kitty" },
-- rule = { size = { 300, 300 }, location = { 50, 50 } }, -- rule = { size = { 300, 300 }, location = { 50, 50 } },