SUMMARY:Where to get more info on openwin customization?

From: Systems Administrator (
Date: Mon Feb 26 1996 - 15:11:25 CST


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 <>
   To: Systems Administrator <>

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.

From: (Sun System Admin)

Edit the menu files.

$ acc7:/users1/sysadm> l /usr/openwin/lib/*menu*
-rw-rw-r-- 1 root bin 414 Jul 18 1994
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
-rw-rw-r-- 1 root bin 172 Jul 18 1994
-rw-rw-r-- 1 root bin 1102 Jul 18 1994
-rw-rw-r-- 1 root bin 749 Jul 18 1994
From:Patrick Nolan <pln@egret0.Stanford.EDU>
   To:Systems Administrator <>

Take a look at the olwm man page. It has comprehensive information
about the menus.
------------------------------------------------------------------------ (Kevin Sheehan {Consulting Poster Child})
   To:Systems Administrator <>

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.

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


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


"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


"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


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

"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: (Jerry Weber CIC-2)

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


If you have just the basic Unix skills the needed edits
to customize these menus will be evident.
From: (greg harrison)
Look in /usr/openwin/lib. You will see the following files:


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

------------------------------------------------------------------------ (Andrew Kemp)

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

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 <>
   To:Systems Administrator <>
See olwm(1). The default root menu is /usr/openwin/lib/openwin-menu.
You can put your own in ~/.openwin-menu.

From: (Mark S. Anderson)

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


                      Systems Administrator
                   Space Sciences Building CRSR
   Mail all system related problems to one of the following: 
                              or see 
Vic Germani in room 402

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