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.
ImportError: /usr/lib/xchat/plugins/python.so: undefined symbol: xchat_hook_print
not found anything yet as to what that causes, that, though.
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?
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).
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