-----Original Message-----
From: Felix <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Sunday, April 19, 1998 2:25 AM
Subject: Re: Adding things to menus in XWindows (using Win95 thing)


>
>
>Paul Breedlove wrote:
>
>> I am running Red Hat version 5, and all I had to do is edit the file
named:
>> system.fvwm2rc
>> It is located in the /etc/X11/fvwm2 directory, on my system. You may want
to
>> use the find command to find in on yours.
>>
>> You can just look at the existing menu items, to see how to add more...
>>
>> Paul
>>
>
>I had been wondering this too, but this didn't help.


Try this:

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
-- In my opinion MS is a lot better at making money than it is at making a
good OS - Linus Torvalds
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