From fa011fe3d4d4c323b93ae3e7550fe18341abcfb1 Mon Sep 17 00:00:00 2001 From: Ottatop Date: Thu, 7 Sep 2023 20:38:57 -0500 Subject: [PATCH] Add documentation --- api/lua/window_rules.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/lua/window_rules.lua b/api/lua/window_rules.lua index 9b578f0..e3d9886 100644 --- a/api/lua/window_rules.lua +++ b/api/lua/window_rules.lua @@ -131,6 +131,8 @@ end --- - The outermost block of a window rule condition is implicitly a `cond_all` block. --- - All condition attributes (`tag`, `title`, `class`, etc.) can either be a single value or an array. --- This includes `cond_all` and `cond_any`. +--- - Within a `cond_all` block, any arrays must have all items be true for the attribute to be true. +--- - Within a `cond_any` block, any arrays only need one item to be true for the attribute to be true. --- ---`cond` can be a bit confusing and quite table heavy. Examples are shown below for guidance. ---