Subject: A better icon for Pine under X

From: Ted Stern <[email-masked]>
Date: Mon, 13 Feb 1995 15:31:05 -0800 (PST)

Okay, I answered my own question.  I now know how to start Pine in an 
xterm and set what its icon should look like:

I start Pine using

	xterm -n Pine -name Pine -title "Pine" -e /usr/local/bin/pine &
                      ^^^^^^^^^^
			this is what tells the window manager what the
			application is called

In my .Xdefaults I have

!
!  This tells the window manager the name of the bitmap to use for the icon
!  -- substitute with the correct window manager name.
Mwm*Pine*iconImage: /user2/stern/.xbm/pine.xbm

!
!  Pine doesn't inherit any of the specific XTerm stuff, so it needs to be
!  defined.
!
Pine*VT100.font:    -misc-fixed-medium-r-normal--15-140-*-*-c-*-*-1
Pine*VT100.Geometry:    80x50+10+10
Pine*VT100.saveLines:   0
Pine*jumpScroll:        off
Pine*scrollBar:         off

#ifdef COLOR
        Pine*foreground: White
        Pine*background: DarkSlateGrey
        Pine*cursorColor: Red
        Pine*pointerColor: Blue
#endif

The bitmap I use is attached.  It is a slightly shrunken version of the 
one on the Pine WWW site.

The X resources for window managers are read only when the wm starts, so 
they won't take effect until you restart.

	-- Ted
 ============================================================================
 Ted Stern (206) 685-9304                        Dept. of Applied Math, FS-20
 [email-masked]                      University of Washington
 http://www.amath.washington.edu/~stern/         Seattle, WA  98195
 ============================================================================
#define pine_width 78
#define pine_height 58
#define pine_x_hot -1
#define pine_y_hot -1
static char pine_bits[] = {
 0x00,0x00,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x07,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x80,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xf0,0xe0,
 0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1b,0xe0,0x09,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x0f,0x90,0x17,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xf0,
 0x17,0x00,0x00,0x00,0x00,0xc0,0x0f,0x00,0x00,0x90,0x2f,0x00,0x00,0x00,0x00,
 0x00,0x0c,0x0e,0x00,0xfc,0x29,0x00,0x00,0x00,0x00,0x00,0x80,0x01,0x00,0xec,
 0x17,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x90,0x29,0x00,0x00,0x00,0x00,
 0x00,0x30,0x00,0x00,0xec,0xd7,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x9f,
 0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xf0,0xe7,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xec,0xc9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xef,
 0x39,0x00,0x00,0x38,0x3e,0x00,0x00,0x00,0x80,0x9c,0xd7,0x00,0x00,0xc0,0x07,
 0x00,0x00,0x00,0xf0,0xff,0x1f,0x01,0x00,0x80,0x01,0x00,0x00,0x00,0x18,0xf3,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xfc,0x29,0x07,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x9f,0xd7,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xff,
 0xdf,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0xfc,0x2f,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xf0,0xff,0xe7,0x19,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0xf3,
 0xff,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x8c,0xfc,0xef,0x1f,0x00,0x00,0x00,
 0x00,0x00,0x00,0x80,0xef,0xf7,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x9c,
 0x2f,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0xfc,0xff,0xc1,0x00,0x00,0x00,
 0x00,0x00,0x80,0x87,0xff,0xef,0x1f,0x00,0x00,0x00,0x00,0x00,0xc0,0xf0,0xef,
 0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x9f,0x3f,0xff,0x3f,0x00,0x00,
 0x00,0x00,0x00,0x98,0xe3,0xff,0x18,0xfc,0x01,0x00,0x00,0x00,0x00,0xff,0xff,
 0xe7,0x27,0x00,0x00,0x00,0x00,0x00,0xc0,0xf7,0xf0,0x3f,0xfe,0x00,0x00,0x00,
 0x00,0x00,0xf8,0x18,0xff,0xcf,0x3f,0x07,0x00,0x00,0x00,0x00,0x8e,0xef,0xff,
 0xf7,0xd8,0xfc,0x03,0x00,0x00,0x00,0x80,0xfc,0xe3,0xff,0x3f,0x1f,0x06,0x00,
 0x00,0x00,0x80,0xff,0xff,0x37,0x1f,0x20,0x00,0x00,0x00,0x00,0xf0,0xfb,0xfc,
 0xdf,0xf9,0x03,0x00,0x00,0x00,0x00,0xce,0x87,0xf3,0xdf,0xff,0x1f,0x00,0x00,
 0x00,0xc0,0x3f,0x70,0xff,0xff,0x1f,0x78,0x00,0x00,0x00,0xf0,0x71,0x7f,0xff,
 0xff,0xff,0x1f,0x00,0x00,0x00,0x00,0xc0,0xf7,0xfc,0xe7,0xfe,0xfc,0x01,0x00,
 0x00,0x00,0xbe,0x8f,0xff,0xef,0x3f,0xe7,0x03,0x00,0x00,0x80,0x7f,0xf8,0xff,
 0xff,0xe0,0xff,0x7f,0x00,0x00,0xc0,0x09,0xe7,0xfc,0xff,0x07,0x03,0x00,0x00,
 0x00,0x3c,0xf6,0xfc,0xf3,0xff,0xff,0x3c,0x00,0x00,0x00,0x0e,0xce,0xff,0xef,
 0xdf,0x1f,0xc7,0x01,0x00,0x00,0xc0,0x3f,0xff,0xf3,0xef,0x3e,0x78,0x06,0x00,
 0x00,0xfc,0x81,0x87,0xff,0x2f,0xf8,0x80,0x3f,0x00,0x80,0x0f,0xf0,0x80,0xe0,
 0xcf,0xe6,0x00,0xf0,0x01,0x60,0x00,0x38,0x00,0xe0,0xcf,0x00,0x07,0x00,0x06,
 0x00,0x00,0x00,0x00,0xe0,0x0f,0x00,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,
 0x0f,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x0f,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xe0,0x0f,0x00,0x00,0x00,0x00};