[NTLUG:Discuss] RE: twm icon manager orientation

Eric Schnoebelen eric at cirr.com
Thu Jun 12 14:48:40 CDT 2003


srengasamy at firstam.com writes:
- Thanks a lot, Eric.

	Glad to be of service..

- Is is possible not to display the title bar of the IconManager?

	Yes..  Create a "NoTitle" block, and list "TWM Icon Manager"

- How do I position any new window at top left position by default?

	Well, I don't try to have the window manager force
everything to the same place.  Instead, I let it pick a place to
drop a new window, using "RandomPlacement", and allow
applications to place themselves (as long as they request
something other than 0,0) by using "UsePPosition "non-zero"".

	I've included my current .twmrc, as an example of what
you can do.  Look for it after the signature..

- Also, what are the parameters to enhance the default xterm?

	The manual page for Xterm(1) will list all of the
command line options and X resources available for use.

	Here's the list of X resources I use (set using `xrdb
-merge' during my X session startup..)

xterm*font: -b&h-lucidatypewriter-medium-r-*-*-14-*-*-*-*-*-*-*
xterm*font1: -b&h-lucidatypewriter-medium-r-*-*-6-*-*-*-*-*-*-*
xterm*font2: -b&h-lucidatypewriter-medium-r-*-*-8-*-*-*-*-*-*-*
xterm*font3: -b&h-lucidatypewriter-medium-r-*-*-10-*-*-*-*-*-*-*
xterm*font4: -b&h-lucidatypewriter-medium-r-*-*-12-*-*-*-*-*-*-*
xterm*font5: -b&h-lucidatypewriter-medium-r-*-*-14-*-*-*-*-*-*-*
xterm*font6: -b&h-lucidatypewriter-medium-r-*-*-24-*-*-*-*-*-*-*
xterm*multiScroll: 		false
xterm*scrollBar:		false
xterm*visualBell:		true
xterm*loginShell:		true
xterm*saveLines:		3072
xterm*VT100*colorMode:		true
xterm*VT100*dynamicColors:	true
xterm*VT100.jumpScroll:		true
xterm*VT100.loginShell:		true
xterm*VT100.tekInhibit:		true
xterm*VT100.scrollKey:		true
xterm*VT100.charClass: 33:48,35:48,37:48,43:48,54-57:48,64:48,95:48,126:48,35:48

--
Eric Schnoebelen		eric at cirr.com 		http://www.cirr.com
    "The reasonable man adapts himself to the world; the unreasonable one
      persists in trying to adapt the world to himself.  Therefore, all
       progress depends on the unreasonable man." - George Bernard Shaw
---------------------------[cut here]--------------------------------------
#**********************************************************************
#
#    .twmrc
#
#**********************************************************************

#WarpCursor
ShowIconManager
IconManagerGeometry "100x20+2+2" 1
IconifyByUnmapping
RestartPreviousState
UsePPosition "non-zero"
RandomPlacement
Zoom 	       5
BorderWidth    2
MenuFont	"-bitstream-charter-medium-r-normal--15*"
TitleFont	"-adobe-helvetica-bold-r-normal--14*"
ResizeFont	"serif12"

# additional buttons on the title bar
RightTitleButton ":xlogo" = f.delete

Button1 =    : root : f.menu "Hosts"
Button1 =s   : root : f.menu "TwmWindows"
Button2 =    : root : f.menu "WindowManager"
Button3 =    : root : f.menu "Utilities"
Button1 =    : title : f.move
Button2 =    : title : f.raise
Button3 =    : title : f.lower
Button1 =    : frame : f.move
Button1 =s   : frame : f.resize
Button2 =    : frame : f.raise
Button3 =    : frame : f.lower
Button1 =    : icon : f.iconify
Button2 =    : icon : f.move
Button3 =    : icon : f.lower
Button1 =s   : title: f.zoom

Button1	= meta : window | title : f.raise
Button2	= meta : window | title : f.lower
Button3	= meta : window | title : f.circledown

"Z"	= meta  : window | title : f.lower
"X"	= meta  : window | title : f.raise
"C"	= meta  : window | title : f.circledown


NoTitle
{
  "xload"
  "xmeter"
  "xpostage" 
  "xclock"
  "xpostit"
  "xpostit+"
  "xditsee"
  "XDitsee"
  "XCal"
  "TWM Icon Manager"
  "XTerm Icon Manager"
  "Netscape Icon Manager"
}

IconManagers {
    "XTerm"	"=500x20+308+2" 5
    "Netscape"	"=200x20+104+2" 2
}

IconManagerShow {
    "XTerm Icon Manager"
    "Netscape Icon Manager"
}


DontIconifyByUnmapping
{
  "inbox"
  "xpostit"
  "xpostit+"
  "xclock"
  "xload"
}

IconManagerDontShow
{
  "xclock"
  "xmeter"
  "xload"
  "xpostit"
  "xpostit+"
  "xpostage"
  "XDitsee"
  "XCal"
}

menu "Hosts"
{
"Systems"	f.title
"localhost"	!"xon localhost -access xterm -ls -s -T localhost -n localhost"
"CIRR"		f.title
"chessie"	!"xon chessie -access xterm -ls -s -T chessie -n chessie"
"egsner"	!"xon egsner -access xterm -ls -s -T egsner -n egsner"
"ihnp4"		!"xon ihnp4 -access xterm -ls -s -T ihnp4 -n ihnp4"
"milo"		!"xon milo -access xterm -ls -s -T milo -n milo"
"mr-bill"	!"xon mr-bill -access xterm -ls -s -T mr-bill -n mr-bill"
"opus"		!"xon opus -access xterm -ls -s -T opus -n opus"
"slurpee"	!"xon slurpee-0 -access xterm -ls -s -T slurpee -n slurpee"
"apps2go"	f.title
"ft-meade"	!"xon ft-meade.apps2go.com -access xterm -ls -s -T ft-meade -n ft-meade"
"wylbur"	!"xon wylbur.apps2go.com -access xterm -ls -s -T wylbur -n wylbur"
"Telereality"	f.title
"shira"		!"xon shira.telereality.net -access xterm -ls -s -T shira -n shira"
}

menu "WindowManager"
{
"Window Ops"		f.title
"Refresh"		f.refresh
"Move "			f.move
"Zoom"			f.zoom
"Iconify"		f.iconify
"Resize "		f.resize
"Raise "		f.raise
"Lower "		f.lower
"Focus "		f.focus
"Unfocus"		f.unfocus
"Close "		f.delete
"Destroy "		f.destroy
"Source .twmrc"		f.twmrc
"Exit"			f.quit
}

menu "Utilities"
{
"Utilities"     f.title
"Tools"		f.menu "Tools"
"Manual"	f.menu "Manual"
"Games"		f.menu "Games"
"Icon Manager"	f.title
"Show"		f.showiconmgr
"Hide"		f.hideiconmgr
}

menu "Tools"
{
# "Calculator"	!"xon localhost xcalc -rpn"
"Lock"		!"xon localhost -access xlock -display $DISPLAY -mode blank -timeout 60"
"NetScape"	!"xon localhost -access netscape -display $DISPLAY"
}

menu "Manual"
{
"Manuals"	f.title
"NetBSD"	!"xon egsner.cirr.com -access xman -display $DISPLAY "
# "Solaris"	!"xon wylbur.apps2go.com -access xman -display $DISPLAY "
}

menu "Games"
{
# "MahJongg"	!"xon localhost -access xmahjongg -d $DISPLAY"
# "Othello"	!"xon localhost -access othello  -display $DISPLAY"
# "hextris"	!"xon localhost -access xhextris  -display $DISPLAY"
# "Chess"	!"rsh dhostwo -n execqt /usr/bin/X11/xchess -display $DISPLAY"
# "Star Trek"	!"rsh dhostwo -n execqt /usr/bin/X11/xtrek -display $DISPLAY"
}
---------------------------[cut here]--------------------------------------



More information about the Discuss mailing list