-----Original Message-----
From: K. FRAZIER <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, March 16, 1998 16:13 PM
Subject: adding icons to X


>I am a new user, and I was wondering how to add a program icon to X.  For
>example; I just installed netscape and would like to have its icon appear
>on the desktop.  Is the process the same for all windows managers, i.e.
>Fvwm95, Afterstep, KDE, etc.
>
>I am running Redhat 4.2 with the default manager (what ever that is) but
>was thinking about installing Afterstep or KDE.
>
>I would look it up in a manual or HOWTO, but I wasn't sure where to look
>and I am at school right now so I don't have access to Linux.



This is how you add an icon to the menu (I think it should be the same for
4.2, however it was written for 5.0)

When X starts up, it scans the directory: /etc/X11/wmconfig/ and then
creates the "start" menu by combining these files. For instance, here is you
program I run a lot :)

Anything after the "#" is my own comments and are not to be included
--------------------- /etc/X11/wmconfig/xbill --------------------------
xbill name "xbill"   #This is the name as it appears in the menu
xbill description "Save the world"   #I think you can figure this out
yourself :)
xbill mini-icon mini-xbill.xpm   #This is the one you are most interested
in, see below
xbill group "Games/Video"   #This is where is goes on the menu
xbill exec "xbill &"   #This is the actual command... the "&" is there to
make it run in the background
----------------------------End

This would be one of the many files scanned, and would set up that one menu
option. Another beauty of this is that we don't have to create the groups in
the start menu... They are auto made as defined in each file at line 5
(xbill group "Games/Video"). So in other words, if I was to change that to:
"xbill group "Cool-games/play" that group would automagically be created
under the programs section of the start menu. So what about this icon
thing??

First, you need to create/edit a graphic. These are found in the
/usr/share/icons/mini/ directory and each name starts with "mini-" (Just for
a for the sake of a standard). Each image is 16 colors (I think you can have
any amount, but since 16 colors is pretty generic, it's best to use it), and
is usually *about* 32 x 32 in size. You can use gimp for any icons you want
to make (Which is included in Redhat 5.0).

Then, the last step is simply calling it from one of the files in
"/etc/X11/wmconfig". You do not need to include the path to the icons...
this is a default directory...

Hope this helps...


Bill Bushong - Concord, NH
--------------------------------------------------------------
Web Page: http://www.totalnetnh.net/~billybb
E-Mail: [EMAIL PROTECTED]
Call Sign: N1SNI   --()--   ICQ Number: 1268653
--If a word if misspelled in the dictionary, how would we know?
Download for free the future of networks... http://www.redhat.com


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to