From: mac@mercury.Harris-ATD.com (Mike McDonald)
Newsgroups: comp.windows.x
Subject: VTwm question
Date: 17 Dec 92 22:23:57 GMT
Organization: Advanced Technology Dept, Harris Corp, Melbourne, FL


  I'm trying out vtwm (off of export with the patch). I can get the virtual
desktop to work basicly the way I want. My problem is the "Virtual Desktop"
window. I can't get anything to show up in it. Is it useful for something? I also
can't figure out "doors". Any hints?

  Thanks,

  Mike McDonald				Advanced Technology Dept.	
					Harris Corp.
  Email: mac@trantor.harris-atd.com	M.S. 16-1912
  Voice: (407) 727-5060			P.O. Box 37
  Fax:   (407) 729-3363			Melbourne, Florida 32902

P.S. Here's my .vtwmrc file. It's a modified version of my .twmrc.

#**********************************************************************
#
#    Mike McDonald's .twmrc
#
#**********************************************************************

VirtualDesktop	"192x103-110-47" 20
SnapRealScreen

NailedDown {
	"Virtual Desktop"
	"TWM Door"
	"VTWM Icon Manager"
	"XTerm Icon Manager"
	"XClock"
	"XCal"
}
PanDistanceX	1280
PanDistanceY	1024

Color
{
    BorderColor "#c0c"
    #BorderColor "blue"

    BorderTileForeground "black"
    BorderTileBackground "black"

    TitleForeground "white"
    TitleBackground "#a0a"
    #TitleForeground "white"
    #TitleBackground "mediumblue"

    MenuForeground "white"
    MenuBackground "#a0a"
    #MenuForeground "red"
    #MenuBackground "wheat"

    MenuTitleForeground "white"
    MenuTitleBackground "CornFlowerBlue"
    MenuShadowColor "black"
    IconForeground "white"
#    IconBackground "mediumblue"
    IconBackground "#a0a"
    IconBorderColor "white"
    IconManagerForeground "white"
    IconManagerBackground "#a0a"
    DesktopDisplayBackground "gray"
    DesktopDisplayBorder "white"
    DesktopDisplayForeground "white"
}
VirtualDesktopFont "5x8"
VirtualFont "5x8"

Monochrome
{
    BorderColor "black"
    BorderTileForeground "black"
    BorderTileBackground "white"
    TitleForeground "black"
    TitleBackground "white"
}

BorderWidth	2
Zoom # 20
RandomPlacement
#DecorateTransients
WarpUnmapped

ShowIconManager
IconManagerGeometry	"=100x10-102+0"
IconManagers {
  "XTerm"	"=100x10-0+0" 1
}

IconRegion "=100x500-0-100" North East 60 60
IconifyByUnMapping
DontIconifyByUnMapping { 
    "Visi"
    "Xmh"
}
RestartPreviousState
SortIconManager
IconManagerDontShow
{
    "xclock"
    "xcal"
    "xload"
    "console"
    "fmconsole"
    "Tools"
    "xbiff"
    "Information"
    "Xmh"
}

UnknownIcon	"terminal"
IconDirectory	"~/src/X/bitmaps/"
Icons
{
    "Visi"      "Visi.icon"
    "xterm"	"terminal"
    "emacs"	"emacs.icon"
    "Emacs"	"emacs.icon"
    "xemacs: emacs @ altair" "emacs.icon"
    "xdbx"	"xdbx.icon"
    "lisp"      "lisp.icon"
    "lisp-clx"  "lisp.icon"
}

SqueezeTitle
{
  "xemacs"	left	80	0
  "emacs"	left	80	0
  "Emacs"	left	80	0
  "Lisp"	left	212	0
}

NoTitle
{
  "TWM"
  "TWM Icon Manager"
  "VTWM Icon Manager"
  "XTerm Icon Manager"
  "console"
  "xload"
  "xclock"
  "xckmail"
  "dclock"
  "oclock"
  "xcal"
  "xbiff"
  "A Common Window"
  "xeyes"
}

NoHighlight
{
  "xclock"
  "xckmail"
  "dclock"
}

AutoRaise
{
  "nothing"	# I don't like auto-raise
}

WindowRing
{
  "emacs"
  "shell"
  "xemacs"
}


#DefaultFunction f.beep
#WindowFunction f.beep

#Button = KEYS : CONTEXT : FUNCTION
#----------------------------------
Button1 =      : root   : f.menu "WindowOps"
Button2 =      : root   : f.menu "TwmWindows"
Button3 =      : root   : f.menu "Commands"

Button1 =      : title  : f.raiselower
Button2 =      : title  : f.move
Button3 =      : title  : f.menu "title-menu"

Button1 =      : frame  : f.raiselower
Button2 =      : frame  : f.move
Button3 =      : frame  : f.menu "title-menu"
Button1 =      : icon   : f.iconify
Button2 =      : icon   : f.move
Button3 =      : icon   : f.menu "icon-menu"
Button1 = m    : icon   : f.raise
Button2 = m    : icon   : f.move
Button3 = m    : icon   : f.lower

Button1 =      : iconmgr   : f.iconify
Button2 =      : iconmgr   : f.raiselower
Button3 =      : iconmgr   : f.menu "icon-menu"

"Help"    =      : all : f.warpto "Xman"
"Home"    =      : all : f.warpto "Xman"

"L1"    =   m  : all  : !"xmodmap -e 'clear mod2'"
"L2"    =      : root : f.twmrc

"L5"    =      : window : f.raise
"L5"    =      : title  : f.raise

"L6"    =      : window : f.lower
"L6"    =      : title : f.lower

"F1"    =      : window : f.raise
"F1"    =      : title  : f.raise

"Up"	=      : root : f.panup "100"
"Right"	=      : root : f.panright "100"
"Down"	=      : root : f.pandown "100"
"Left"	=      : root : f.panleft "100"
Button1	=      : door : f.enterdoor
Button2	=      : door : f.enterdoor
Button3	=      : door : f.enterdoor

Function "raise-n-focus"
{
    f.raise
    f.focus
}

Function "up-and-raise"
{
    f.upiconmgr
    f.raise
}

Function "down-and-raise"
{
    f.downiconmgr
    f.raise
}

menu "WindowOps"
{
"Window Ops"		f.title
"Source .twmrc"		f.twmrc
"Identify Window"	f.identify
"Home"			f.resetdesktop
"Up"			f.panup "100"
"Right"			f.panright "100"
"Down"			f.pandown "100"
"Left"			f.panleft "100"
"New Door"		f.newdoor
"Forward Window"	f.warpring "next"
"Back Window"		f.warpring "prev"
"Show Icon Mgr"		f.showiconmgr
"Hide Icon Mgr"		f.hideiconmgr
"Refresh"		f.refresh
"Refresh Window"	f.winrefresh
"twm Version"		f.version
"Focus on Root"		f.unfocus
"Cut File"		f.cutfile
"(De)Iconify"		f.iconify
"DeIconify"		f.deiconify
"Move Window"		f.move
"ForceMove Window"	f.forcemove
"Resize Window"		f.resize
"Raise Window"		f.raise
"Lower Window"		f.lower
"Raise or Lower"	f.raiselower
"Focus on Window"	f.focus
"Raise-n-Focus"		f.function "raise-n-focus"
"Delete Window"		f.delete
"Destroy Window"	f.destroy
"Kill twm"		f.quit
}

menu "title-menu"
{
"Close"			f.iconify
"Move"			f.move
"Resize"		f.resize
"Expose"		f.raise
"Hide"			f.lower
"Refresh"		f.winrefresh
"Delete"		f.delete
"Kill"			f.destroy
}

menu "icon-menu"
{
"Open"			f.deiconify
"Move"			f.move
"Resize"		f.resize
"Expose"		f.raise
"Hide"			f.lower
"Refresh"		f.winrefresh
"Delete"		f.delete
"Kill"			f.destroy
}

menu "InitialSetup"
{
"Resources"	!"xrdb .Xdefaults &"
"Console"	!"xterm -geometry 96x7+0-0 -C -name console &"
"Manual Pages"	!"xman -notopbox &"
"News (Jabba)"	!"rm -f .xrnlock ; xrn -nntpServer jabba.ess.harris.com -geometry +150+50 &"
"News (Semi)"	!"rm -f .xrnlock ; xrn -nntpServer slopoke.mlb.semi.harris.com -geometry +150+50 &"
"Mail"		!"xon trantor xmh -iconic -geometry 660x750+190+50 -flag &"
"Calendar"	!"xcal -geometry -0-0 &"
"Clock"		!"xclock -geometry 100x100-0-20 &"
"Source .twmrc"	f.twmrc
}

menu "Machines" {
"Small"		f.menu "Small"
"Big"		f.menu "Big"
}

menu "Small"
{
"Altair"	!"xon altair    xterm -name altair    -T altair    -geometry 80x30 -tn vt102 &"
"Aurora"	!"xon aurora    xterm -name aurora    -T aurora    -geometry 80x30 -tn vt102 &"
"Claire"	!"xon claire    xterm -name claire    -T claire    -geometry 80x30 -tn vt102 &"
"Melmac"	!"xon melmac    xterm -name melmac    -T melmac    -geometry 80x30 -tn vt102 &"
"Mercury"	!"xon mercury   xterm -name mercury   -T mercury   -geometry 80x30 &"
"Quasar"	!"xon quasar    xterm -name quasar    -T quasar    -geometry 80x30 -tn vt102 &"
"Solaria"	!"xon solaria   xterm -name solaria   -T solaria   -geometry 80x30 -tn vt102 &"
"Trantor"	!"xon trantor   xterm -name trantor   -T trantor   -geometry 80x30 -tn vt102 &"
}

menu "Big"
{
"Altair"	!"xon altair    xterm -name Altair    -T Altair    -geometry 120x50+40+70 -tn vt102 &"
"Aurora"	!"xon aurora    xterm -name Aurora    -T Aurora    -geometry 120x50+40+70 -tn vt102 &"
"Claire"	!"xon claire    xterm -name Claire    -T Claire    -geometry 120x50+40+70 -tn vt102 &"
"Melmac"	!"xon melmac    xterm -name Melmac    -T Melmac    -geometry 120x50+40+70 -tn vt102 &"
"Mercury"	!"xon mercury   xterm -name mercury   -T mercury   -geometry 120x50+40+70 &"
"Pluto"		!"xon pluto     xterm -name Pluto     -T Pluto     -geometry 120x50+40+70 &"
"Quasar"	!"xon quasar    xterm -name Quasar    -T Quasar    -geometry 120x50+40+70 -tn vt102 &"
"Solaria"	!"xon solaria   xterm -name Solaria   -T Solaria   -geometry 120x50+40+70 -tn vt102 &"
"Trantor"	!"xon trantor   xterm -name Trantor   -T Trantor   -geometry 120x50+40+70 -tn vt102 &"
}

menu "Commands"
{
#""			f.nop
"Machines"		f.menu "Small"
"Initial Commands"	f.menu "InitialSetup"
"Shell"			!"xterm -geometry 80x30 -name `hostname` &"
#"Shell (big)"		!"xterm -geometry 120x50+0+70 -name shell &"
"Emacs"			!"gnuemacs -w =96x50+0+70 &"
"Lisp"			!"xon sol xterm -geometry 100x50+40+70 -name Lisp -T Lisp -e lisp &"
"CMU Lisp"		!"xon claire xterm -geometry 100x50+40+70 -name Lisp -T 'CMU\\ Lisp' -e lisp &"
"News"			!"rm -f .xrnlock ; xrn -nntpServer jabba.ess.harris.com -geometry +150+50 &"
"FrameMaker"		!"cd /quasar/home/mac/text ; /usr/local/bin/maker3.1X &"
"Hardcopy Window"	!"csh -fc /home/mac/cmds/xscreenprint &"
"Dump Window"		!"csh -fc /home/mac/cmds/xdumpwindow &"
"Print Calendar"	!"pscal `date +%h\ %y` &"
"Redisplay Screen"	f.refresh
"Exit X Windows"	f.quit
}
Newsgroups: comp.windows.x