/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Linux/xorg/resources.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 - The resources normaly are defined in '.Xdefaults' in home directory and 
 
2
 loaded on Xorg startup.
 
3
    + Listing currently loaded resources
 
4
        xrdb -query
 
5
    + Loading new resources (replacing current ones)
 
6
        xrdb -load $HOME/.Xdefaults
 
7
    + Additing additional rules
 
8
        xrdb -merge $HOME/.Xdefaults
 
9
 
 
10
 - Resources are described using following syntax:
 
11
        application.component.subcomponent.subcomponent.attribute: value
 
12
 normally this defaults to:
 
13
        application_class.attribute: value
 
14
 for example:
 
15
        Xterm.font: -adobe-helvetica-*-r-*-*-*-140-*-*-*-*-*
 
16
    + Application class could be found using "Attributes/Window Specification"
 
17
    menu of Windowmaker (called by right clicking on window titlebar)
 
18
 
 
19
 
 
20
 - Applications may define their private resources 'app-defaults' directory.
 
21
 
 
22
 - If the environmental variable "XUSERFILESEARCHPATH" is set during application
 
23
 execution, it will define a list of resource  files to be loaded.
 
24
 Example:
 
25
    export XUSERFILESEARCHPATH="~/.Xresources-%N:~/.Xdefaults"
 
26
 %* are used to set a single rule for multiple applications:
 
27
    %N - application class
 
28
    %L - language, locale, and codeset (ru_RU.KOI8-R)
 
29
    %l - language (ru)
 
30
    %t - territory (RU)
 
31
    %c - codeset (KOI8-R)