SUMMARY:Where to get more info on openwin customization?

From: Systems Administrator (sysadmin@astrosun.tn.cornell.edu)
Date: Mon Feb 26 1996 - 15:11:25 CST


Hello,

and thanks for the responses! The basic answer...:

man olwm

That showed me what I needed.

My original post:

I do not have a complete set of openwin docs (sunOS4.1.3) and I need to
know how to add menus/programs to the main desktop menus among other
things. Is there anywhere on the net where I can find info on this?

Thanks to:
------------------------------------------------------------------------
From: Ron Havener <havener@charweb.org>
   To: Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

Check out the "openwin-menu*" files in /usr/openwin/lib. If you take a
close look at these files, I think you should be able to figure out how
it works. If not, just ask.

Ron
------------------------------------------------------------------------
From: sysadm@its.brooklyn.cuny.edu (Sun System Admin)
   To: sysadmin@astrosun.tn.cornell.edu

Edit the menu files.

$ acc7:/users1/sysadm> l /usr/openwin/lib/*menu*
-rw-rw-r-- 1 root bin 414 Jul 18 1994
/usr/openwin/lib/openwin-menu
lrwxrwxrwx 1 root other 26 Dec 18 16:29
/usr/openwin/lib/openwin-menu-demo -> openwin-menu-demo-fulldemo
-rw-rw-r-- 1 root bin 560 Jul 18 1994
/usr/openwin/lib/openwin-menu-demo-fulldemo
-rw-rw-r-- 1 root bin 172 Jul 18 1994
/usr/openwin/lib/openwin-menu-demo-nodemo
-rw-rw-r-- 1 root bin 1102 Jul 18 1994
/usr/openwin/lib/openwin-menu-programs
-rw-rw-r-- 1 root bin 749 Jul 18 1994
/usr/openwin/lib/openwin-menu-utilities
------------------------------------------------------------------------
From:Patrick Nolan <pln@egret0.Stanford.EDU>
   To:Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

Take a look at the olwm man page. It has comprehensive information
about the menus.
------------------------------------------------------------------------
From:Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
   To:Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

You can take the default files from /usr/openwin/lib and modify them.

As an aside, I'd recommend just doing it the .xinitrc way instead of all
the various OW scripts. Of course, I'd also recommend looking at twm or
vtwmif you're going to learn something for new.
------------------------------------------------------------------------
From:mjb@liffe.com
   To:sysadmin@astrosun.tn.cornell.edu

I don't know any documentation on how to add menus', but my example
menuswhich I use I can give you.
The configuration is relatively easy.
I have included 5 attachments, start reading from the openwin-menu file
and work through the logical list.
#
# @(#)openwin-menu-michael 1.0 96/01/22 openwin-menu-utilities
#
# OpenWindows default michael menu file - Michael submenu
#

"Xterms..." MENU
        "host1:joe" /usr/openwin/bin/xterm -bg black -fg orange
-title host1:joe -e rsh host1 -l joe &
        "host2:joe" /usr/openwin/bin/xterm -bg black -fg orange
-title host2:joe -e rsh host2 -l joe &
        "host3:joe" /usr/openwin/bin/xterm -bg black -fg orange
-title host3:joe -e rsh host3 -l joe &
        "host4:joe" /usr/openwin/bin/xterm -bg black -fg orange
-title host4:joe -e rsh host4 -l joe &
        "host5:joe" /usr/openwin/bin/xterm -bg black -fg orange
-title host5:joe -e rsh host5 -l joe &
        "host6:joe" /usr/openwin/bin/xterm -bg black -fg orange
-title host6:joe -e rsh host6 -l joe &
        "host7:joe" /usr/openwin/bin/xterm -bg black -fg orange
-title host7:joe -e telnet host7 &
        "host8:joe" /usr/openwin/bin/xterm -bg black -fg orange
-title host8:joe -e telnet host8 &
"Xterms..." END PIN

"Mailtools..." MENU
        "host1" /usr/openwin/bin/mailtool &
        "host2" rsh host2 -l joe -e /usr/openwin/bin/mailtool'
&"
"Mailtools..." END PIN

"Applications..." MENU
        "Netscape" rsh host2 -l joe -e "DISPLAY=host1:0.0 export
DISPLAY;/usr/local/bin/netscape2 &"
        "Mosaic" rsh host2 -l joe -e "DISPLAY=host1:0.0 export
DISPLAY;/usr/local/bin/Mosaic &"
        "Archie" rsh host2 -l joe -e "DISPLAY=host1:0.0 export
DISPLAY;/usr/local/bin/archie &"
        "FtpTool" rsh host2 -l joe -e "DISPLAY=host1:0.0 export
DISPLAY;/usr/local/bin/ftptool &"
        "Proctool" rsh host2 -l joe -e "DISPLAY=host1:0.0 export
DISPLAY;/usr/local/bin/proctool &"
"Applications..." END PIN
#
# @(#)openwin-menu-programs 1.19 94/06/03 openwin-menu-programs
#
# OpenWindows default root menu file - Programs submenu
#

"Programs" TITLE PIN

"File Manager..." DEFAULT exec $OPENWINHOME/bin/filemgr
"Text Editor..." exec $OPENWINHOME/bin/textedit
"Mail Tool..." exec $OPENWINHOME/bin/mailtool
"Calendar Manager..." exec $OPENWINHOME/bin/cm

SEPARATOR

"Command Tool..." exec $OPENWINHOME/bin/cmdtool
"Shell Tool..." exec $OPENWINHOME/bin/shelltool

SEPARATOR

"Clock..." exec $OPENWINHOME/bin/clock
"Calculator..." exec $OPENWINHOME/bin/calctool
"Performance Meter..." exec $OPENWINHOME/bin/perfmeter
"Print Tool..." exec $OPENWINHOME/bin/printtool
"Audio Tool..." exec $OPENWINHOME/bin/audiotool
"Tape Tool..." exec $OPENWINHOME/bin/tapetool

SEPARATOR

"Image Tool..." exec $OPENWINHOME/bin/imagetool
"Snapshot..." exec $OPENWINHOME/bin/snapshot
"Icon Editor..." exec $OPENWINHOME/bin/iconedit
"Binder..." exec $OPENWINHOME/bin/binder
"AnswerBook..." exec $OPENWINHOME/bin/answerbook

SEPARATOR

"Demos..." exec $OPENWINHOME/bin/filemgr -d
$OPENWINHOME/demo/add
----------
#
# @(#)openwin-menu-utilities 1.3 91/06/10 openwin-menu-utilities
#
# OpenWindows default root menu file - Utilities submenu
#

"Refresh" DEFAULT REFRESH
"Reset Input" exec kbd_mode -u
"Function Keys" exec vkbd
"Window Controls" MENU
        "Open/Close" DEFAULT OPEN_CLOSE_SELN
        "Full/Restore Size" FULL_RESTORE_SIZE_SELN
        "Back" BACK_SELN
        "Quit" QUIT_SELN
"Window Controls" END PIN
"Save Workspace" SAVE_WORKSPACE
#
# Uncomment the following if interested in colormap compaction
#
#"Save Colors" MENU
# "Save" DEFAULT $OPENWINHOME/bin/cmap_compact save
# "Discard" $OPENWINHOME/bin/cmap_compact discard
#"Save Colors" END
#
"Lock Screen" exec xlock -mode pyro -batchcount 500
"Console..." exec $OPENWINHOME/bin/cmdtool -C

------------------------------------------------------------------------
From: x092306@lanl.gov (Jerry Weber CIC-2)
   To:sysadmin@astrosun.tn.cornell.edu

This customization is easy. Just go to /usr/openwin/lib.
Then look at all the files named openwin...

openwin-init
openwin-menu
openwin-menu-demo
openwin-menu-demo-fulldemo
openwin-menu-demo-nodemo
openwin-menu-programs
openwin-menu-utilities
openwin-sys

If you have just the basic Unix skills the needed edits
to customize these menus will be evident.
------------------------------------------------------------------------
From: greg.harrison@analog.com (greg harrison)
   To:sysadmin@astrosun.tn.cornell.edu
Look in /usr/openwin/lib. You will see the following files:

openwin-init
openwin-menu
openwin-menu-demo
openwin-menu-demo-fulldemo
openwin-menu-demo-nodemo
openwin-menu-programs
openwin-menu-utilities
openwin-sys

These are the system wide files. If you want to modify them for all
users,
then change these. If you want to change them for a single user, copy
them
to the user's home and preface each file name with a "." (i.e
openwin-init
becomes .openin-init). Its fairly easy to change them once you look at
them
and see how they are set up.

------------------------------------------------------------------------
From:a.kemp@fml.co.uk (Andrew Kemp)
   To:<sysadmin@astrosun.tn.cornell.edu>, Administrator@fml.co.uk,
Systems@fml.co.uk

I think you will get a lot of replies to this one somehow, but
here is my little bit anyway.

The files that control the default menus are in
$OPENWINHOME/lib/openwin-menu-xxxxxx

These are the easiest way to see the format. To create custom menus,
it is best NOT to edit these, since you will probably have multiple
installations of OpenWindows, but to create a file in your home
directory called .openwin-menu with similar commands to those in the
windows area. Obviously you can then add personal entries or reference
a central menu configuration file.

If you look at the man page for 'olwm' and look in the section
MENU SPECIFICATION SYNTAX, you should get some more help.

Happy playing,
------------------------------------------------------------------------
From:Jay Lessert <jayl@lattice.com>
   To:Systems Administrator <sysadmin@astrosun.tn.cornell.edu>
See olwm(1). The default root menu is /usr/openwin/lib/openwin-menu.
You can put your own in ~/.openwin-menu.

------------------------------------------------------------------------
From: anderson@neon.mitre.org (Mark S. Anderson)
   To:sysadmin@astrosun.tn.cornell.edu

The quick, partial answer is: edit $OPENWINHOME/lib/openwin-menu*
------------------------------------------------------------------------
And to anyone who I missed!

Vic

-- 
***************************************************************
                      Systems Administrator
                      ---------------------
                   Space Sciences Building CRSR
   Mail all system related problems to one of the following:
sysadmin@astrosun.tn.cornell.edu   root@astrosun.tn.cornell.edu          
sysadmin@spacenet.tn.cornell.edu   root@spacenet.tn.cornell.edu
                              or see 
Vic Germani in room 402         germani@astrosun.tn.cornell.edu
***************************************************************



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:54 CDT