File: XFaces.ad

package info (click to toggle)
xfaces 3.3-29
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 948 kB
  • ctags: 1,414
  • sloc: ansic: 7,487; makefile: 948; sh: 5
file content (387 lines) | stat: -rw-r--r-- 9,752 bytes parent folder | download | duplicates (3)
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
!
! $Id: XFaces.ad,v 1.23 1994/03/08 03:23:33 liebman Exp $
!
!    Application level resources for xfaces.
!

!
! Pop mailbox support.  You need to have a .popauth file in your home dir.
! it should contain one line as:
!		<username> <password>
!
! Its not very secure but the pop servers that I have access to don't support
! any other authentation.
!
! XFaces.popHost:	hostname.for.pop.mailbox

! Search spec:
!	<search type> <format list> <search path>
!
! Search type:
!	beforeImage
!	afterImage
!	beforeSound
!	afterSound
!	beforeCommand
!	afterCommand
!	resource
!	x-face
!	facedb
!
! format list:
!	<format>:<format>:<format>
!
! Formats:
!	xpm-shape
!	xpm
!	xbm-shape
!	xbm
!
! If search path is empty then use imagePath/soundPath resource as path.
! If format list is empty then the imageFormats resource is used.
! The format list is ignored currently for sound (must still be supplied
! if you want to specify paths).
!
! Here are the defaults.
!
!XFaces.imageTypes:	xpm-shape:xpm:xbm-shape:xbm
!
!XFaces.imageSearch:	\
!		beforeImage\n\
!		resource\n\
!		facedb\n\
!		x-face\n\
!		afterImage
!
!XFaces.soundSearch:	\
!		beforeSound\n\
!		resource\n\
!		facedb\n\
!		afterSound
!
!XFaces.commandSearch:	\
!		beforeCommand\n\
!		resource\n\
!		afterCommand
!

!
! This is where we look for sounds or images if the file name does not
! begin with a '/' or a './' or a '../'. It they are ':' seperated path
! lists.
!

XFaces.soundPath:	/usr/sounds:/usr/demo/SOUND/sounds
XFaces.imagePath:	/usr/share/xfaces/images

!
!  This is where we look for sounds/images in the "faces" format.
!  The address liebman@zod.clark.net will look for the following
!  files:
!
!	[facedbPath]/net/clark/zod/liebman
!	[facedbPath]/net/clark/zod/liebman/face
!	[facedbPath]/net/clark/liebman
!	[facedbPath]/net/clark/liebman/face
!	[facedbPath]/net/liebman
!	[facedbPath]/net/liebman/face
!	[facedbPath]/MISC/liebman
!	[facedbPath]/MISC/liebman/face
!	[facedbPath]/net/clark/zod/unknown
!	[facedbPath]/net/clark/zod/unknown/face
!	[facedbPath]/net/clark/unknown
!	[facedbPath]/net/clark/unknown/face
!	[facedbPath]/net/unknown
!	[facedbPath]/net/unknown/face
!	[facedbPath]/MISC/unknown
!	[facedbPath]/MISC/unknown/face
!
! Note that various extensions are attempted for each file depending on what
! image types are set in the imageTypes resource.
!

XFaces.facedbPath: /usr/share/picons/:/usr/share/picons/users:/usr/share/picons/domains:/usr/share/picons/unknown

!
!  Tell how many different annotations there are. We can support any number.
!

XFaces.annotationCount:		2
XFaces.unknownAnnotationCount:	2

!
! Annotation defaults.
!

XFaces.Annotation.font:		-*-helvetica-*-r-*--10-*

!
! Describe the annotations. A negative 'x' means pixels from the right edge
! of the face and a negitive 'y' is pixels up from the bottom.
!

XFaces.annotation1.x:		2
XFaces.annotation1.y:		-2
XFaces.unknownAnnotation1.x:	2
XFaces.unknownAnnotation1.y:	-2
!XFaces.annotation1.foreground:	blue
!XFaces.annotation1.background:	white
!XFaces.annotation1.font:	-*-helvetica-*-r-*--10-*

XFaces.annotation2.x:		-2
XFaces.annotation2.y:		-2
XFaces.unknownAnnotation2.x:	-2
XFaces.unknownAnnotation2.y:	-2
!XFaces.annotation2.foreground:	red
!XFaces.annotation2.background:	white
!XFaces.annotation2.font:	-*-helvetica-*-r-*--10-*

!
! Here we specify what goes in each of the annotations for mail messages.
! Valid values are:
!	user		- The user part of the From address.
!	host		- The host part of the From address.
!	user@host	- The user and host parts of the From address.
!	count		- The number of messages represented by this face.
!	*header		- any value beginning with a '*' is expected to
!			  be a header name and the contents of that header
!			  will be displayed. For instance "*subject:" will
!			  display the subject line.

XFaces.mail.annotation1:	user
XFaces.mail.annotation2:	count
XFaces.mail.unknownAnnotation1:	user
XFaces.mail.unknownAnnotation2:	count

!
!
!  Try this in your .Xdefaults as an alternative annotation scheme.
! This will display the subject line across the bottom of faces and the
! count in the upper left corner.  If the face is an "unknown" face then
! the username will appear above the subject.
!
!XFaces.annotationCount:		2
!XFaces.annotation1.x:			1
!XFaces.annotation1.y:			-1
!XFaces.annotation1.maxWidth:		62
!XFaces.annotation2.x:			1
!XFaces.annotation2.y:			1
!XFaces.mail.annotation1:		*subject:
!XFaces.mail.annotation2:		count
!XFaces.unknownAnnotationCount:		3
!XFaces.unknownAnnotation1.x:		1
!XFaces.unknownAnnotation1.y:		-1
!XFaces.unknownAnnotation1.maxWidth:	62
!XFaces.unknownAnnotation2.x:		1
!XFaces.unknownAnnotation2.y:		1
!XFaces.unknownAnnotation3.x:		1
!XFaces.unknownAnnotation3.y:		-12
!XFaces.unknownAnnotation3.maxWidth:	62
!XFaces.mail.unknownAnnotation1:	*subject:
!XFaces.mail.unknownAnnotation2:	count
!XFaces.mail.unknownAnnotation3:	user

!
!  Conversion for GIF images.
!

XFaces.xpm.filterCount:		1
XFaces.xpmFilter.name:		gif
XFaces.xpmFilter.filter:	giftopnm %s | ppmtoxpm
XFaces.xpmFilter.extension:	.gif

!
! This is the image/sound that will be displayed/played
! when there us no mail.
!

XFaces.noMailImage:			nomail
XFaces.noMailSound:			NoMail

!
! this is the volume sounds will be played with.
!

XFaces.volume:				50

!
! I like to use the RFC822 From: header for the From address.
!

XFaces.fromField:	From:

!
! This will tell xfaces not to compress images. There will be one image for
! each mail/list item.  The default is True.
!
! XFaces.compressImages:	False
!

!
! Use the specified command rather than the builtin mail check.  The
! command is expected to return as the first line:
! "<user> <host>"
! and is ignored. The second line is:
! "Rows=nnn Cols=nnn" 
! and specifies the size in images for the display.
! All following lines look like:
! "<user><tab><host><tab><label1><tab><label2><tab><label3><tab><label4>"
! only the first two fields are required.
!
! See scripts.tar.Z on cs.indiana.edu in the /pub/faces/scripts directory 
! for a collection of scripts (from Steve Kinzler kinzler@cs.indiana.edu) 
! that can be used here. (If you want to use the (realy cool) weather forcast
! script you will want to grab weather.tar.Z also as it contains the images
! for the forcasts.

!XFaces.listCommand:	wx.faces

!
! The folowing are what I use for the fx.faces script. Note you can use
! command line options to do this too:
! 
! xfaces -name weather
!

weather.listCommand:	wx.faces wbc
weather.facedbPath:	/usr/lib/picon/weather
weather.compressImages:	False
weather.keepOrder:	True
weather.shapeExtra:	False
weather.update:		900

!
!    Top level shell resources.
!

XFaces.allowShellResize:		True

!
!    Frame resources.
!

XFaces.frame.tileWidth:		64
XFaces.frame.tileHeight:	64

XFaces.frame.horizSpacing:	4
XFaces.frame.vertSpacing:	4
XFaces.frame.internalWidth:	2
XFaces.frame.internalHeight:	2
XFaces.frame.borderWidth:	0

!XFaces.frame.setWidth:		4
!XFaces.frame.setHeight:	2
!XFaces.frame.minWidth:		2
XFaces.frame.maxWidth:		4
!XFaces.frame.minHeight:	2
!XFaces.frame.maxHeight:	4

!
!    General resources for face icons.
!
! All of my faces are 64x64 (you can use other sizes!).  Note that if you
! have images that are of more than one size you should set the above
! tileWidth and tileHeight to the *largest* size or your images may be chopped.
! The Tiled widget only attempts to deal with identicly sized children. Images
! smaller than the "tile" size are centered by the Label widget but those
! larger will be chopped off.
!

XFaces.frame.Label.width:		64
XFaces.frame.Label.height:		64
XFaces.frame.Label.internalWidth:	0
XFaces.frame.Label.internalHeight:	0
XFaces.frame.Label.borderWidth:		2

!
!  Button1 will cause all sounds for the given face to be played.
!  Button2 will check for new mail.
!  Button3 will re-run commands.
!

XFaces.frame.Label.translations:	<Btn1Down>:PlaySounds()\n\
					<Btn2Up>:CheckMail()\n\
					<Btn3Down>:RunCommands()
XFaces.frame.translations:		<Btn2Up>:CheckMail()


!
!  This will cause any message that has already been read but left in the
! system mailbox to be ignored. This works with SunOS4.  It should work 
! other places as well.
!

XFaces.ignoreMessageBindings:	\
	Status:	[OU]

!
! I use the before image bindings to catch mailing lists.
!
!  By not placeing the extension on the image name allows things to fall
! back to non-shaped and monochrome (if available) when needed.
!

XFaces.beforeImageBindings:	\
	To:	info-andrew:		andrew		Andrew\n\
	Cc:	info-andrew:		andrew		Andrew\n\
	To:	xannounce@x.org:	x		XAnnounce\n\
	Cc:	xannounce@x.org:	x		XAnnounce\n\
	Cc:	framer:			window		Framers\n\
	From:	framer:			window		Framers\n\
	To:	framer:			window		Framers\n\
	To:	owner-sunflash:		sunflash	SunFlash\n\
	Cc:	owner-sunflash:		sunflash	SunFlash\n\
	From:	owner-sunflash:		sunflash	SunFlash

!
! Could setup special sounds for mailing lists.
!

!XFaces.beforeSoundBindings:	\
!	Cc:	foo:		train

!
! Could use this to show a special face for users that we have no face for.
!

!XFaces.afterImageBindings:	\
!	*	.*:		unknown

!
! Could setup default sounds if no sound is specified.
!

!XFaces.afterSoundBindings:	\
!	*	.*:			train

!
! This set of bindings is run after the all of the image search has 
! completed.  If it finds a match then the value will be used as the 
! widget name for the widget.  If no image was found then the value will
! also be displayed as a string for the image.
!

!XFaces.labelBindings:	\
!	*	.*:	Huh?

!
!  For bounced mail.
!

XFaces.image.mailer-daemon:	mailer-daemon
XFaces.sound.mailer-daemon:	bong

!
!  For mail from uucp.
!

XFaces.image.uucp:		uucp
XFaces.sound.uucp:		computer

!
!  Mail from root.
!

XFaces.image.root:		root
XFaces.sound.root:		busy