13 |
13 |
14 or |
14 or |
15 |
15 |
16 $ sudo apt-get install imagemagic |
16 $ sudo apt-get install imagemagic |
17 $ import -quality 100 -pause <sec> -silent <file> |
17 $ import -quality 100 -pause <sec> -silent <file> |
|
18 |
|
19 * .Xdefaults |
|
20 |
|
21 The syntax of an Xdefaults file is as follows: |
|
22 |
|
23 name.Class.resource: value |
|
24 |
|
25 name |
|
26 The name of the application, some program allow change it by |
|
27 '-name' option. |
|
28 class |
|
29 The classification used to group resources together. The names |
|
30 of classes conventionally start with an upper-case letter. |
|
31 resource |
|
32 The name of the resource whose value is to be changed. |
|
33 Resources are typically lowercase with uppercase |
|
34 concatenation. |
|
35 value |
|
36 The actual value of the resource. This can be 1 of 3 types: |
|
37 * Integer (whole numbers). |
|
38 * Boolean (true/false, yes/no, on/off). |
|
39 * String, for example word (white), color (#ffffff), font |
|
40 (-*-fixed-bold-r-*-*-*-100-*-*-*-*-iso8859-1 ) or path |
|
41 (/usr/bin/firefox). |
|
42 delimiters |
|
43 A period (.) is used to signify each step down into the |
|
44 hierarchy. A colon (:) is used to separate the resource |
|
45 declaration from the actual value. |
|
46 |
|
47 Comment start with '!' char and goes up to end of line or C-like /* */. |
|
48 |
|
49 Use xprop utility to find classes and resources used by application. |
|
50 |
|
51 To reread your .Xresources file, and throw away your old resources: |
|
52 |
|
53 $ xrdb ~/.Xdefaults |
|
54 |
|
55 To reread your .Xresources file, and keep your old resources: |
|
56 |
|
57 $ xrdb -merge ~/.Xdefaults |
|
58 |
|
59 ** Wildcard matching. |
|
60 |
|
61 The asterisk can be used as a wildcard, making it easy to write a single rule |
|
62 that can be applied to many different applications or elements. |