x.rst
changeset 399 87b5a0093153
parent 348 d9bc1a2f275d
child 400 fe31cd23bfe5
--- a/x.rst	Sun May 16 22:08:52 2010 +0300
+++ b/x.rst	Mon May 17 22:42:48 2010 +0300
@@ -20,14 +20,17 @@
 
 The syntax of an Xdefaults file is as follows:
 
-  name.Class.resource: value
+  [client. | *][{restriction.} | *]resource: value
 
-  name
+  client
                 The name of the application, some program allow change it by
-                '-name' option.
-  class
-                The classification used to group resources together. The names
-                of classes conventionally start with an upper-case letter.
+                '-name' option. This element is optional (can be substituated
+                with wildcard).
+  restriction
+
+                Class names or name of specific class instance. The classes
+                names conventionally start with an upper-case letter.
+
   resource
                 The name of the resource whose value is to be changed.
                 Resources are typically lowercase with uppercase
@@ -56,6 +59,52 @@
 
  $ xrdb -merge ~/.Xdefaults
 
+** Example.
+
+  *foreground: yellow
+  XClock*foreground: pink
+  Xman*topBox*foreground: blue
+
+** Value types.
+
+*** Colors.
+
+For color names see '/usr/lib/X11/rgb.txt'.
+
+*** Font.
+
+You can use either a full name, a wildcarded specification, or a font alias.
+
+  XTerm*Font: -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1
+  XTerm*Font: *courier-bold-r*140*
+  XTerm*Font: 7x14
+
+*** Geometry.
+
+  XCalc*geometry: 120x120-0-0
+  XClock*geometry: -50+100
+
+*** Cursor names.
+
+Cursor resources require the name of the file in /usr/include/X11/bitmaps that
+contains the cursor you want to use.
+
+  ScoTerm*pointerShape: gumby
+
+*** Pixmaps.
+
+Pixmaps are patterns, like bitmaps, that are used to texture or color an area
+on your display. Pixmap resources are specified like cursors or bitmaps.
+
+*** Numebers.
+
+  XLogo*borderWidth: 10
+
+*** Boolean.
+
+Some resources require a boolean value, such as 'true' or 'false', 'yes' or
+'no', or 'on' or 'off'.
+
 **  Wildcard matching.
 
 The asterisk can be used as a wildcard, making it easy to write a single rule