aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorAllusive <[email protected]>2023-12-02 08:40:14 +1100
committerGitHub <[email protected]>2023-12-02 08:40:14 +1100
commit8f0481d3198179e1c41047b1d85f5a7d76b77816 (patch)
tree0257d03b90b0d419e77524c7d82a3872a5132f63 /man
parentUpdate README.md (diff)
downloadcompfy-8f0481d3198179e1c41047b1d85f5a7d76b77816.tar.xz
compfy-8f0481d3198179e1c41047b1d85f5a7d76b77816.zip
Update compfy.md
Diffstat (limited to 'man')
-rw-r--r--man/compfy.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/man/compfy.md b/man/compfy.md
index 15f5169..f86a11b 100644
--- a/man/compfy.md
+++ b/man/compfy.md
@@ -4,6 +4,37 @@
#### Config can be placed at either `~/.config/compfy.conf` or `~/.config/compfy/compfy.conf`
+## Basic Syntax
+
+Variables are formatted like this
+
+```
+variable-name = value;
+```
+All values require a semi-colon on the end as shown above.
+
+When declaring a animation-name you need to use double quotes like such
+
+```
+animation-for-unmap-window = "slide-down";
+```
+
+When using rule-sets there are two ways to provide windows to it.
+
+With almost every rule-set it will follow this syntax and structure.
+
+```
+rule-set = [
+ "class_g = 'foo'" # Select windows by classname
+ "name = 'bar'" # Select windows by name
+];
+```
+
+In the example you replace `foo` with the `WM_CLASS` which can be found using the `xprop` command provided by [xorg-xprop](https://archlinux.org/packages/extra/x86_64/xorg-xprop/) on Arch and `xorg.xprop` on NixOS.
+
+Sometimes `xprop` will output multiple class names. If the first class name does not work, try the second one.
+
+
# Options
## corner-radius