[comp.windows.open-look] Specifying icon bitmaps in olwm

bagchi@vuse.vanderbilt.edu (Sugato Bagchi) (05/06/91)

Is there any way to attach a bitmap file as the icon for a
precompiled X application running under olwm. twm allowed you
to specify "class-name" "icon-filename" pairs in .twmrc. Does
olwm allow something similar ?

Getting tired of looking at the same wrench and hammer icon for
xterm and others. Thanks in advance.

Sugato Bagchi               bagchi@vuse.vanderbilt.edu

Stuart.Marks@Eng.Sun.COM (Stuart Marks) (05/09/91)

    Is there any way to attach a bitmap file as the icon for a
    precompiled X application running under olwm. twm allowed you
    to specify "class-name" "icon-filename" pairs in .twmrc. Does
    olwm allow something similar ?

Not exactly, but there is an interface whereby applications can request
that the window manager display a particular icon, and most applications
allow this to be customized from the command line or by using resources.
For example, XView applications use the -WI option to specify an alternate
icon.  Xterm uses the iconPixmap resource to do this.

(NOTE: XView's icon files are in SunView icon format, editable by
iconedit, whereas Xterm's are in X bitmap format.)

Examples:

    shelltool -WI /usr/include/images/hello_world.icon
    xterm -xrm '*iconPixmap: /usr/openwin/include/X11/bitmaps/xlogo32'

s'marks

Stuart W. Marks			ARPA: smarks@eng.sun.com
Windows & Graphics Software	UUCP: sun!smarks
Sun Microsystems, Inc.