1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
Icons for wmnetselect
How to change to one of the other included xpm files in the xpm directory.
For example, to change to the netscape4/negative4 xpm pair,
1. Change the netscape.xpm symbolic link to xpm/netscape4.xpm,
and the negative.xpm to the xpm/negative4.xpm.
First remove the old symbolic links:
rm netscape.xpm negative.xpm
Then create the new links:
ln -s xpm/netscape4.xpm netscape.xpm
ln -s xpm/negative4.xpm negative.xpm
2. Re-compile wmnetselect, and view the new icon:
make clean ; make
To add a new (pixmap)icon:
1. Copy the new xpm file to the wmnetselect-0.85/xpm directory.
2. Edit the .xpm file to make sure the icon name (the first non-comment
line) looks something like this:
static char *netscape[] = {
It's important that the variable after static char be *netscape[]
3. Make the 'negative.xpm'. I use the ImageMagick 'display' utility.
Just "display netscape.xpm", and select the Enhance->Negate menu and
save the file as negative7.xpm, or something in the xpm directory.
4. As in step 2, edit the negative7.xpm file, such that the first non-comment
line looks like:
static char *negative[] = {
(ImageMagick will save it as *magick[], change it!)
5. Change to the wmnetselect src directory, and create a symbolic link
called netscape.xpm, and negative.xpm to the name of your new icons.
ln -sf xpm/netscape7.xpm netscape.xpm
ln -sf xpm/negative7.xpm negative.xpm
6. Re-compile wmnetselect, and view your new icon:
make clean ; make
If you get compile errors (that you didn't get with the default icons),
it is because your icons are in the wrong format. I've had good success
with opening them with ImageMagick and re-saving them under the same name.
If you do this, you MUST edit the xpm file and change the first non-commented
line, just like in steps 2 and 4.
The official ImageMagick WWW page is
http://www.wizards.dupont.com/cristy/ImageMagick.html
Icons can be up to 64x64, but in practice you should make them no larger than
60x60 to allow room for the Window Maker border. You need a border so you can
drag wmnetselect to the dock or the clip.
Patrick Hill
apathos @ bham.net
|