Merge pull request #34 from louy2/louy2-config-doc

Reformat, move config pattern & add window id info
This commit is contained in:
joten 2015-03-09 20:23:47 +01:00
commit 004c9452ed

View file

@ -6,6 +6,22 @@ Not all windows should be managed by bug.n the same way, or even may not be
managable at all. To handle windows differently, you can add rules to the
configuration.
The general format of a rule added to `Config.ini` is as follows (all in one
line, ";" is not allowed as a character in the field values):
```
Config_rule=<class>;
<title>;
<function name>;
<is managed>;
<monitor>;
<views tags>;
<is floating>;
<is decorated>;
<hide title>;
<action on a single window>
```
With the first part of the rule, you identify the window using the
following information:
@ -13,6 +29,9 @@ following information:
2. title (as a regular expression)
3. arbitrary criterion (as a function name, e. g. "Window_isPopup", or blank)
If you encounter a window you want to configure about, you can retrieve its
identifying information with the hotkey `#I` a.k.a. <kbd>Win</kbd><kbd>I</kbd>.
With the second part you can give bug.n the following information on how to
handle the identified windows:
@ -27,11 +46,6 @@ removed.
6. Should the title text be hidden in the bug.n bar (0 = no, 1 = yes)?
7. A special single window action (`close` or `maximize` or blank).
The general format of a rule added to `Config.ini` is as follows:
`Config_rule=<class>;<title>;<function name>;<is managed>;<monitor>;<views /
tags>;<is floating>;<is decorated>;<hide title>;<action on a single window>`
(all in one line, ";" is not allowed as a character in the field values)
If you want to replace a rule, which is already set in `Config.ahk`, you will
have to use the correct variable name; e. g. you may set a default rule
(identifying part: `.*;.*;`), overwriting the first rule set in `Config.ahk`,