hi gus,
still no idea on how it works.. could you try to find a generic way of doing it ? I'm really poor at this kind of stuff..
Also, why don't you create the image you want and then export it as xbm with gimp?
from what I can see a xbm is an image defined in C structure where each BIT (not byte) represents a pixel, if the bit is 1, then the pixel is black, if the bit is 0, then the pixel is white.. the icon mask is the same thing, but, all it does is a binary AND between the iconbitmap and iconmask.
the file must be :
@fileName
FileName must be the name of a file containing a bitmap description in the standard X11 or X10 format.
so you need to find those specifications and see what can be done with them!
Yes i know! but still (i think) xbm is uggly... so why i insist on this? Because if that icon depends of the X we could use XPM, or better, if KDE and Gnome support PNG for the X ( i know we must handle other wm). So i am continue reading this to search for a general solution as you suggest
I've found some info:
http://wiki.tcl.tk/4197Indeed is possible to use XPM (but i think that info is about using XPM inside TK), look at the list:
http://wiki.tcl.tk/1404If we could test with XPM, will be a general solution for all wm. Remember that XPM is a Pixmap, not a Bitmap as XBM. But XPM is in relation with XBM, just that handles colors and transparency.
XPM:
http://koala.ilog.fr/lehors/xpm-README.html