diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/rc.xml | 13 | ||||
| -rw-r--r-- | data/rc.xsd | 8 |
2 files changed, 17 insertions, 4 deletions
diff --git a/data/rc.xml b/data/rc.xml index 42d629ff..fa673c8d 100644 --- a/data/rc.xml +++ b/data/rc.xml @@ -506,11 +506,15 @@ want to use it --> <applications> <!-- the name or the class can be set, or both. this is used to match - windows when they appear + windows when they appear. role can optionally be set as well, to + further restrict your matches - role can optionally be set, and only as much as you provide will be - checked to see if it matches, eg. if you set role="abc" and the window's - role is actually "abcde" it would match. + the name, class, and role use simple globbing rules such as those + used by a shell. you can use * to match any characters and ? to match + any single character. + + when multiple rules match a window, they will all be applied, in the + order that they appear in this list --> <application name="first element of window's WM_CLASS property (see xprop)" class="second element of window's WM_CLASS property (see xprop)" @@ -520,6 +524,7 @@ change that attribute of the window --> <decor>yes</decor> + <!-- enable or disable window decorations --> <shade>no</shade> diff --git a/data/rc.xsd b/data/rc.xsd index ca99419a..64cbb98e 100644 --- a/data/rc.xsd +++ b/data/rc.xsd @@ -153,6 +153,7 @@ <xsd:complexType name="window_position"> <xsd:element name="x" type="ob:center_or_int"/> <xsd:element name="y" type="ob:center_or_int"/> + <xsd:element name="monitor" type="ob:mouse_or_int"/> <xsd:element minOccurs="0" name="head" type="xsd:string"/> </xsd:complexType> <xsd:complexType name="application"> @@ -330,6 +331,13 @@ <xsd:pattern value="center|0|[1-9][0-9]*"/> </xsd:restriction> </xsd:simpleType> + <xsd:simpleType name="mouse_or_int"> + <xsd:restriction base="xsd:string"> + <!-- ob: atoi($_) unless $_ eq 'center'; --> + <!-- I think the regexp DTRT WRT atoi. --> + <xsd:pattern value="mouse|0|[1-9][0-9]*"/> + </xsd:restriction> + </xsd:simpleType> <xsd:simpleType name="contextname"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Desktop"/> |
