File: sample.xitalkrc

package info (click to toggle)
xitalk 1.1.11-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 824 kB
  • ctags: 588
  • sloc: ansic: 4,209; makefile: 184; sh: 102
file content (106 lines) | stat: -rw-r--r-- 2,077 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
#.xitalkrc file

#prefix path for pixmaps
#used if the explicit path mentioned in the pattern section fails to
#provide a match
PIXPATH = /home/sysadm/caolan/pixmaps

DEFAULTPIC = xitalk.xpm

#automatic answer 
AUTOANSWER = NO

#autorun created command
AUTORUN = NO

#check my mail as well
CHECKMAIL_BEGIN
TITLE = my mail
MAILBOX = /var/spool/mail/caolan
PICTURE = mail.xpm
COMMAND = xterm -ut -e pine -iz
CHECKMAIL_END

#check a random file also
CHECKMAIL_BEGIN
TITLE = new finger
MAILBOX = /home/sysadm/caolan/planlog
ACCEPT_EXTERNAL_READ = NO
PICTURE = mail.xpm
COMMAND = xterm -ut -e less ~/planlog
CHECKMAIL_END

#this one continually touches the tty device we're logged in to to
#keep you fairly unidle
CHECKMAIL_BEGIN
TITLE = keep unidle
MAILBOX = %(-1)
TOUCH = YES
CHECKMAIL_END

#automatically update who list
AUTOREFRESH = YES

#----------------Pattern Section
#define a pattern
#note the use of %(-1) for the fun of it
PATTERN_BEGIN
TITLE = Talk Request
PATTERN = talk: respond with:  talk (.*)@(.*)
COMMAND = xterm -ut -T %(-1) -exec ytalk -x %(1)@%(2)
PICTURE = talk.xpm
PATTERN_END

PATTERN_BEGIN
TITLE = Write Request
PATTERN = (.*)Message from (.*)@(.*) on (.*) at (.*)
COMMAND = xterm -ut -exec dwrite %(2) %(4)
PICTURE = write.xpm
PATTERN_END

PATTERN_BEGIN
TITLE = Wall
PATTERN = Broadcast Message from (.*)@(.*)
COMMAND = xterm -ut -exec dwrite %(1)
PICTURE = wall.xpm
PATTERN_END


#----------------Menu Section
MENU_BEGIN
TITLE = Finger
DETERMINED = xterm -ut -exec /home/sysadm/caolan/bin/finger-sh %(u)
MENU_END

MENU_BEGIN
TITLE = Talk
DETERMINED = xterm -ut -exec ytalk -x %(u)
MENU_END

MENU_BEGIN
TITLE = Write
DETERMINED = xterm -ut -exec dwrite %(u) %(t)
MENU_END

MENU_BEGIN
TITLE = Last 10 logins
DETERMINED = xterm -ut -exec last-sh -10 %(u)
MENU_END

MENU_BEGIN
TITLE = Wall
DETERMINED = xterm -ut -exec wall
MENU_END

#----------------Configurations Section
CONFIGS_BEGIN
#This file
TITLE = Default
FILE = /home/sysadm/caolan/.xitalkrc
CONFIGS_END

CONFIGS_BEGIN
TITLE = At Lunch
FILE = /home/sysadm/caolan/.gone_to_lunch_xitalk
CONFIGS_END