File: Xresources

package info (click to toggle)
tome 2.3.5-2
  • links: PTS, VCS
  • area: non-free
  • in suites: lenny, squeeze, wheezy
  • size: 15,844 kB
  • ctags: 13,854
  • sloc: ansic: 174,540; sh: 240; makefile: 11
file content (166 lines) | stat: -rw-r--r-- 6,193 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166

		       X Resources for ToME
                         = ========= === ====


>I want to control the angband windows better, like give them automatic
>placement on the screen, resize (the recall window is too large) and smaller
>fonts.

After you've built it, you have to configure your ~/.Xdefaults file to
take advantage of the new functionality. 

My own X Resources look like this (on a 1152x900 screen):

angband*angband*font:                   12x24
angband*angband*geometry:               +0+-20
angband*recall*font:                    7x13
angband*recall*geometry:                80x10+0+586
angband*choice*font:                    7x13
angband*choice*geometry:                -0-0

For a smaller screen size, these are probably better

angband*angband*font:		9x15
angband*angband*geometry:	+300+220
angband*recall*font:		7x13
angband*recall*geometry:	80x15+460+0
angband*choice*font:		7x13
angband*choice*geometry:	+0+440
angband*mirror*font:		7x13
angband*mirror*geometry:	80x15+460+590
angband*color6:			#3070f0
angband*color7:			#907027
angband*term-4*iconic:		true
angband*term-5*iconic:		true
angband*term-6*iconic:		true
angband*term-7*iconic:		true

You could also try modifying these:

Angband*term-4.font (or geometry)
Angband*term-5.font (or geometry)
Angband*term-6.font (or geometry)
Angband*term-7.font (or geometry)

You'll almost certainly want to change the numbers to suit your taste,
screen size, resolution, monitor darkness, etc.  This just gives you an
idea of the format. 

It's also possible to change the colors using X Resources, the
standard colors would look like:

angband*color0:                         #000000
angband*color1:                         #ffffff
angband*color2:                         #a6a6a6
angband*color3:                         #ff6302
angband*color4:                         #ca0808
angband*color5:                         #008e18
angband*color6:                         #0000e3
angband*color7:                         #814007
angband*color8:                         #6b6b6b
angband*color9:                         #d6d6d6
angband*color10:                        #5100c2
angband*color11:                        #fdf105
angband*color12:                        #ff9259
angband*color13:                        #26cf17
angband*color14:                        #02b2f2
angband*color15:                        #b28b48

And the newer colors look like:

angband*color0:                         #000000
angband*color1:                         #ffffff
angband*color2:                         #d7d7d7
angband*color3:                         #ff9200
angband*color4:                         #ff0000
angband*color5:                         #00cd00
angband*color6:                         #0000fe
angband*color7:                         #c86400
angband*color8:                         #a3a3a3
angband*color9:                         #ebebeb
angband*color10:                        #a500ff
angband*color11:                        #fffd00
angband*color12:                        #ff00bc
angband*color13:                        #00ff00
angband*color14:                        #00c8ff
angband*color15:                        #ffcc80

Some older monochrome monitors have problem with white text on black
background. The new code can handle the reverse situation if the user
wants/needs this.

The following X Resources gives black text on white background using
Angband/Xaw. The other colors (2-15) isn't changed, since they're not
used on a monochrome monitor.

angband*color0: #ffffff
angband*color1: #000000

______________________________________________________________________
Yet another example:
angband*angband*font:		9x15
angband*angband*geometry:	+300+220

angband*choice*font:		7x13
angband*choice*geometry:	+0+440

angband*mirror*font:		7x13
angband*mirror*geometry:	80x15+460+590

angband*recall*font:		7x13
angband*recall*geometry:	80x15+460+0

angband*term-1*font:		7x13
angband*term-1*geometry:	80x15+460+0

angband*term-2*font:		7x13
angband*term-2*geometry:	+0+440

angband*term-3*font:		7x13
angband*term-3*geometry:	80x15+460+590

angband*term-4*iconic:		true
angband*term-5*iconic:		true
angband*term-6*iconic:		true
angband*term-7*iconic:		true

angband*color0:                         #000000
angband*color1:                         #ffffff
angband*color2:                         #a6a6a6
angband*color3:                         #ff6302
angband*color4:                         #ca0808
angband*color5:                         #008e18
angband*color6:                         #0000e3
angband*color7:                         #814007
angband*color8:                         #6b6b6b
angband*color9:                         #d6d6d6
angband*color10:                        #5100c2
angband*color11:                        #fdf105
angband*color12:                        #ff9259
angband*color13:                        #26cf17
angband*color14:                        #02b2f2
angband*color15:                        #b28b48
______________________________________________________________________

 Resources:

Name                Class              RepType         Default Value
----                -----              -------         -------------
background          Background         Pixel           XtDefaultBackground
border              BorderColor        Pixel           XtDefaultForeground
borderWidth         BorderWidth        Dimension       1
cursor              Cursor             Cursor          None
cursorName          Cursor             String          NULL
destroyCallback     Callback           Pointer         NULL
height              Height             Dimension       0
insensitiveBorder   Insensitive        Pixmap          Gray
mappedWhenManaged   MappedWhenManaged  Boolean         True
pointerColor        Foreground         Pixel           XtDefaultForeground
pointerColorBackground Background      Pixel           XtDefaultBackground
sensitive           Sensitive          Boolean         True
width               Width              Dimension       0
x                   Position           Position        0
y                   Position           Position        0

!arch-tag: 2d36068f-a924-402b-a411-cd91be556609