messagerie instantané en mode ligne de commande
Pour dialoguer avec une messagerie instantanée comme msn, yahoo messenger, sans utiliser un client graphique comme gaim, mais plutot en mode ligne de commande, il suffit d’utiliser :
– centericq
il faut penser à installer avec :
– centericq-utf8
pour avoir des alertes sonnores :
cd .centericq/
ensuite :
cat sounds
This file contains sound configuration for centericq Every line should look like: <id> <event> <command> <id> id of a contact; can be one of the following * means default sound for all the contacts icq_<uin> for icq contacts (e.g. icq_123) yahoo_<nickname> for yahoo (e.g. yahoo_thekonst) .. etc. Similar for the other protocols <event> can be: msg, sms, url, online, offline, email <command> command line to be executed to play a sound
msg aplay /usr/share/centericq/msg.wav url aplay /usr/share/centericq/url.wav email aplay /usr/share/centericq/email.wav online aplay /usr/share/centericq/online.wav offline aplay /usr/share/centericq/offline.wav sms aplay /usr/share/centericq/sms.wav
pour avoir des alertes, il suffit de modifier le fichier de conf :
touch external
vi external
et copier le script suivant
%action msg_test_info event msg Reacts only on events of message type .. proto all status all .. when we are in away or n/a status options snowait .. the external commands text (below) reads the message from stdin, then its stdout output is sent as a response to a remote user. %exec /usr/bin/X11/xmessage -timeout 2 -default okay "Message de $CONTACT_NICK"
