XChat Notification Area Plugin

After installing xchat-systray and then quickly removing it in shock and disgust, I decided to do a quick hack using the XChat Python plugin. Lo and behold, a notification area plugin for XChat which displays an icon in the notification area on interesting events, and nothing else.

It's short, simple, and straight to the point. When someone talks to you, an icon appears in the notification area. When you switch to the relevant tab, the icon disappears. There is nothing to configure, and it does nothing else. Pure simplicity, and a whole 70 lines of source.

It requires the Python XChat plugin and python-gnome-extras, but assuming you have that just drop this file into ~/.xchat2/ and restart XChat. Voila! At this point you'll notice that I've not even bothered to use a decent icon, but I will soon, honest.

20:30 Tuesday, 05 Apr 2005 [#] [computers] (13 comments)

Posted by DJ at Tue Apr 5 22:49:29 2005:
Awesome! I always thought xchat systray was bloated. When can we apt-get update this ;) ?
Posted by seth vidal at Tue Apr 5 23:43:10 2005:
hmm, Trying to import the python module on fedora core rawhide gives me:
ImportError: /usr/lib/xchat/plugins/python.so: undefined symbol: xchat_hook_print

not found anything yet as to what that causes, that, though.
Posted by RIVE at Wed Apr 6 04:38:34 2005:
My system doesn't have the egg.trayicon, this is the error that x-chat showme:

Python interface loaded
Notification area integration plugin loaded
Traceback (most recent call last):
  File "/home/cesar/.xchat2/notify.py", line 30, in ?
  import gtk, egg.trayicon
ImportError: No module named egg.trayicon
Error loading module /home/cesar/.xchat2/notify.py

How can I correct this?
Posted by amd at Wed Apr 6 07:10:21 2005:
egg.trayicon comes from the gnome-python-extras package.
Posted by Ross at Wed Apr 6 09:23:34 2005:
DJ: you'll be able to apt-get this when Sarge has the required dependencies.

RIVE: As said you'll need to build gnome-python-extras.  If you are running Red Hat, you need to install gnome-python2-extras-libegg (IIRC).
Posted by Adam at Wed Apr 6 12:51:11 2005:
Thanks!  I had the same reaction to xchat-systray.
Posted by lotso at Wed Apr 6 14:14:32 2005:
Hmm... what's the equilvalent of gnome-python-extras in gentoo??
Posted by RIVE at Wed Apr 6 16:34:04 2005:
Thanks, installing gnome-python-extras the script just works :).
Posted by RIVE at Thu Apr 7 03:06:22 2005:
In ubuntu the package is python2.4-gnome2-extras
Posted by Bas van der Lei at Thu Apr 7 15:29:33 2005:
First of all great work! I share you opinion on the xchat-systray program.

I'm not a great python programmer or anything nor do I claim to be, but I've hack up your script to include the features stated in the fixme:
- Use the xchat icon from the current theme
- Use a tooltip to include the nick of the caller and the first part of his message

Those interested can get it here and use it at there own risk:
http://www.xs4all.nl/~basvdlei/python/notify.py
Posted by Ross at Thu Apr 7 15:43:49 2005:
I'd already implemented a decent icon (I was evil and didn't tell anyone), but I'll merge in the tooltips stuff, thanks.
Posted by G-LiTe at Thu Apr 7 17:17:27 2005:
You, good sir, are my numba wan. ;)
Posted by DEAN at Tue Apr 26 15:48:35 2005:
i need thiswww.xchat.org/docs/plugin20.htmlwww.xchat.org/docs/plugin20.html

Name:


E-mail:


URL:


Add 4 and 2 (required):


Comment: