1 -*- mode: outline; coding: utf-8 -*- |
|
2 |
|
3 * Standard. |
|
4 |
|
5 See |
|
6 |
|
7 http://www.tronche.com/gui/x/icccm/ |
|
8 |
|
9 * Making screenshort. |
|
10 |
|
11 $ sudo apt-get install scrot |
|
12 $ scrot -d <sec> <file> |
|
13 |
|
14 or |
|
15 |
|
16 $ sudo apt-get install imagemagic |
|
17 $ import -quality 100 -pause <sec> -silent <file> |
|
18 |
|
19 * Input method. |
|
20 |
|
21 ** Input method by setxkbmap. |
|
22 |
|
23 $ setxkbmap ru |
|
24 |
|
25 $ setxkbmap -rules xorg -model pc104 -layout "us,ru" -option "grp:rwin_toggle,grp_led:scroll" -variant ",winkeys" |
|
26 |
|
27 ** Input method by xorg.conf. |
|
28 |
|
29 Section "InputDevice" |
|
30 Identifier "Keyboard0" |
|
31 Driver "kbd" |
|
32 Option "XkbModel" "pc105" |
|
33 Option "XkbLayout" "us,ru" |
|
34 Option "XkbVariant" ",winkeys" |
|
35 Option "XkbOptions" "grp:rwin_switch,grp_led:scroll" |
|
36 EndSection |
|
37 |
|
38 * .Xdefaults |
|
39 |
|
40 The syntax of an Xdefaults file is as follows: |
|
41 |
|
42 [client. | *][{restriction.} | *]resource: value |
|
43 |
|
44 client |
|
45 The name of the application, some program allow change it by |
|
46 '-name' option. This element is optional (can be substituated |
|
47 with wildcard). |
|
48 restriction |
|
49 |
|
50 Class names or name of specific class instance. The classes |
|
51 names conventionally start with an upper-case letter. |
|
52 |
|
53 resource |
|
54 The name of the resource whose value is to be changed. |
|
55 Resources are typically lowercase with uppercase |
|
56 concatenation. |
|
57 value |
|
58 The actual value of the resource. |
|
59 delimiters |
|
60 A period (.) is used to signify each step down into the |
|
61 hierarchy. A colon (:) is used to separate the resource |
|
62 declaration from the actual value. |
|
63 |
|
64 Comment start with '!' char and goes up to end of line or C-like /* */. |
|
65 |
|
66 Use xprop utility to find classes and resources used by application. |
|
67 |
|
68 To reread your .Xresources file, and throw away your old resources: |
|
69 |
|
70 $ xrdb ~/.Xdefaults |
|
71 |
|
72 To reread your .Xresources file, and keep your old resources: |
|
73 |
|
74 $ xrdb -merge ~/.Xdefaults |
|
75 |
|
76 ** Example. |
|
77 |
|
78 *foreground: yellow |
|
79 XClock*foreground: pink |
|
80 Xman*topBox*foreground: blue |
|
81 |
|
82 ** Value types. |
|
83 |
|
84 *** String. |
|
85 |
|
86 This can be path specification like '/usr/bin/firefox'. |
|
87 |
|
88 *** Colors. |
|
89 |
|
90 For color names see '/usr/lib/X11/rgb.txt'. Also you can use hex |
|
91 representation #ffffff. |
|
92 |
|
93 *** Font. |
|
94 |
|
95 You can use either a full name, a wildcarded specification, or a font alias. |
|
96 |
|
97 XTerm*Font: -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1 |
|
98 XTerm*Font: *courier-bold-r*140* |
|
99 XTerm*Font: 7x14 |
|
100 |
|
101 *** Geometry. |
|
102 |
|
103 XCalc*geometry: 120x120-0-0 |
|
104 XClock*geometry: -50+100 |
|
105 |
|
106 *** Cursor names. |
|
107 |
|
108 Cursor resources require the name of the file in /usr/include/X11/bitmaps that |
|
109 contains the cursor you want to use. |
|
110 |
|
111 ScoTerm*pointerShape: gumby |
|
112 |
|
113 *** Pixmaps. |
|
114 |
|
115 Pixmaps are patterns, like bitmaps, that are used to texture or color an area |
|
116 on your display. Pixmap resources are specified like cursors or bitmaps. |
|
117 |
|
118 *** Numebers. |
|
119 |
|
120 XLogo*borderWidth: 10 |
|
121 |
|
122 *** Boolean. |
|
123 |
|
124 Some resources require a boolean value, such as 'true' or 'false', 'yes' or |
|
125 'no', or 'on' or 'off'. |
|
126 |
|
127 ** Wildcard matching. |
|
128 |
|
129 The asterisk can be used as a wildcard, making it easy to write a single rule |
|
130 that can be applied to many different applications or elements. |
|