Skip to main content

Full text of "GUI Notifications for CenterIM"

See other formats


## Here's how to add external scripts.
## http://www.centerim.org/index.php/Documentation#External_actions_and_auto-responses

## You will get GUI notifications for centerIM with this script.
## You need to have libnotify installed on your system. (sudo apt-get install libnotify-bin on debian systems)
## This script comes with no warranty.
## twitter.com/chanux | chanux at mail provided by gmail.com.


%action         GUI Notifications
event           msg
proto           all
status          all
options         stdin stdout

%exec
#!/bin/bash

msg=`cat`
nick=`echo $CONTACT_NICK | sed s/@\.*//`
echo \'$nick\' \'\"$msg\"\' | xargs notify-send -i gtk-dialog-info -t 5000