Drop deprecated /etc/skel/.asoundrc.example
[grml-etc.git] / etc / skel / .centericq / external
1 # Filename:      $HOME/.centericq/external
2 # Purpose:       call [external] centericq actions (www.centericq.de)
3 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
4 # Bug-Reports:   see http://grml.org/bugs/
5 # License:       This file is licensed under the GPL v2.
6 # Latest change: Don Dez 23 11:07:31 CET 2004 [mika]
7 ################################################################################
8 # Ressources:
9 #
10 # man centericq :-)
11 # http://konst.org.ua/centericq/
12 # http://centericq.de/docs/
13 # http://centericq.de/docs/readme.php?mode=1&chapter=9.3 or ->
14 # http://centericq.de/docs/readme.php?mode=2#9.3 - External actions 
15 #                                                  and auto-responses
16 # http://www.centericq.de/archive/contrib/external-actions/external.wschlich
17 ##############################################################################
18
19 # Autoresponder for Occupied-Modus
20 %action Simple occupied auto-responder
21 event msg
22 proto icq
23 status occupied
24 options stdin stdout
25 %exec
26 #!/bin/sh
27 fname=`head -n 2 $CONTACT_INFODIR/info | tail -n 1`
28 lname=`head -n 3 $CONTACT_INFODIR/info | tail -n 1`
29 cat <<EOF
30 Hello, $fname $lname!
31 Unfortunatelly, I'm not near my box now, but I'll certainly contact you as soon as I get here.
32 EOF
33
34 # Autoresponder for NotAvailable-Modus
35 #%action Simple na away auto-responder
36 #event msg
37 #proto icq
38 #status na away
39 #options stdin stdout
40 #%exec
41 #echo "hi! I am currently *not* available but I received your message."
42 #msg=`cat`
43 #echo "$msg"
44
45 # log all messages arriving when online
46 # -> then process them for example in vim [very usefull if receiving some source!]
47 # put the following into your "~/.vimrc":
48 # map   ##i :e ~/.centericq/icq_log_<C-R>=strftime("%y%m%d")<CR>
49 #%action Simple ICQ-Online-Logger
50 #event msg
51 #proto icq
52 #status online
53 #options stdin stdout
54 #%exec
55 #msg=`cat`
56 #date=`date +'%A %d %B %k:%M:%S'`
57 #date_log=`date +'%y%m%d'`
58 #echo "*$CONTACT_NICK* - $date:" >> $HOME/.centericq/icq_log_"$date_log"
59 #echo -e "$msg\n" >> $HOME/.centericq/icq_log_"$date_log"
60
61 # auto-responding chat robot :-)
62 # Get Eliza -> http://elizatalk.sourceforge.net
63 #%action Eliza
64 #event msg
65 #proto icq
66 #status dnd
67 #options stdin stdout
68 #%exec
69 #msg=`cat`
70 #echo $msg | elizatalk
71
72 # remote control
73 #%action remote control
74 #event msg
75 #proto icq
76 #status online away na
77 #options stdin stdout
78 #%exec
79 ##!/bin/bash
80 #case "$(cat)" in
81 #  df) df -h;;
82 #  uptime) uptime;;
83 #  date) date;;
84 #  uname) uname -a;;
85 #  #sensors) sudo sensors;;
86 #  #w) sudo w;;
87 #  #who) sudo who;;
88 #  #dmesg) sudo dmesg;;
89 #esac
90
91 # fortune cookies
92 #%action fortune cookies
93 #event msg
94 #proto icq
95 #status ffc
96 #options stdout
97 #%exec
98 #fortune
99
100 # icq message forwarding to my mobile phone
101 #%action icq message forwarding to my mobile phone
102 #event msg
103 #proto icq
104 #status dnd
105 #options stdin
106 #%exec
107 #cat | centericq -s sms -p icq -t <enter_your_icq_number>
108
109 #%pre-receive rot13-receive
110 #event msg
111 #proto all
112 #status all
113 #options stdin stdout
114 #%exec
115 ##!/bin/bash
116 #msg="$(cat)"
117 #echo "$msg" | head -n1 | grep rot13-SEND >/dev/null && {
118 #  echo -n "rot13-RECV:"
119 #  echo "$msg" | sed s/rot13-SEND//1 | tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]"
120 #} || {
121 #  echo "$msg"
122 #} 
123 #
124 #%pre-send rot13-send
125 #event msg
126 #proto all
127 #status all
128 #options stdin stdout
129 #%exec
130 ##!/bin/sh
131 #msg="$(cat)"
132 #echo "$msg" | head -n1 | grep rot13: >/dev/null && {
133 #  echo -n "rot13-SEND:"
134 #  echo "$msg" | sed s/rot13://1 | tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]"
135 #} || {
136 #  echo "$msg"
137 #}
138
139 #%action pgpkey
140 #event msg
141 #proto icq
142 #status online
143 #options stdin stdout
144 #%exec
145 #msg=`cat`
146 #fmail=`head -n 4 $CONTACT_INFODIR/info | tail -n 1`
147 #check=`grep pgpkey $msg && gpg --export --armor YOURKEYID | mail -s "Public Key of Your Name" $fmail
148
149 #%action Ignore empty auth-messages
150 #event   auth
151 #proto   icq
152 #status  all
153 #options stdin stdout
154 #%exec
155 ##!/bin/sh
156 #std="Please accept my authorization to add you to my contact list."
157 #msg=`cat`
158 #prefix="* Authorization request : "
159 #reply="You didn't type a reason, your auth request is automatically ignored.";
160 #if [ "$msg" = "$prefix$std" ]; then
161 #        echo "$reply"
162 #        exit 1
163 #elif [ "$msg" = "$prefix" ]; then
164 #        echo "$reply"
165 #        exit 1
166 #fi
167
168 ## END OF FILE #################################################################