# # External actions # ---------------- # # Every section starts with a line containing the "%action ", # "%pre-send ", "%pre-receive " or "%manual " text. # Please note that the of any kind is necessary. It musn't be # empty. Inside it the following parameters can be used: # # event # ----- # Can be "msg", "sms", "url", "online", "offline", "auth", # "contacts" or "notification". # # The latter means centericq's own notifications, such as birthday reminders, # away messages, and other stuff. Specifying several event types is # also allowed. "all" stands for all the event types. # # proto # ----- # Can be "icq", "yahoo", "aim", "irc", "msn", "lj", "rss" or "jab". Or # combination of these words. "all" can be used as a synonim for all of # them. # # status # ------ # Can be "online", "away", "dnd", "na", "occupied", "ffc" or "invisible". # Specifying several ones is possible. "all" stands for all of possible # status modes. # # options # ------- # Possible options for an action are: # # stdin The incoming message text is to be passed to # stdin of the script to be executed. # # stdout The script output is to be sent as a reply # message (if not empty). # # nowait Don't wait for the script to finish. Obviously, the # stdout option won't make sense if this one is used. # # Then, the section named "%exec" should follow. It contains a piece of # script to be executed being copied to a file first. # #%action Simple auto-responder #event msg # Reacts only on events of message type .. #proto all # .. only for icq and yahoo protocols #status all # .. when we are in away or n/a status #options stdin stdout # .. the external commands text (below) reads the message from # stdin, then its stdout output is sent as a response to a # remote user. #exec # Autoresponder for Occupied-Modus %action Simple Highlighter with xosd event msg proto all status all options nowait %exec #!/bin/sh fname=`head -n 2 $CONTACT_INFODIR/info | tail -n 1` lname=`head -n 3 $CONTACT_INFODIR/info | tail -n 1` echo "Message from $fname $lname" | osd_cat -A left -p bottom -f -adobe-helvetica-*-*-*-*-24-*-*-*-*-*-*-* -c red -d 4