#
# $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea Exp $
# 
# Default twm configuration file; needs to be kept small to conserve string
# space in systems whose compilers don't handle medium-sized strings.
#
# Sites should tailor this file, providing any extra title buttons, menus, etc.
# that may be appropriate for their environment.  For example, if most of the
# users were accustomed to uwm, the defaults could be set up not to decorate
# any windows and to use meta-keys.
#

NoGrabServer
RestartPreviousState
DecorateTransients

TitleFont "-adobe-new century schoolbook-bold-r-normal-*-14-*-*-*-*-*-*-*"
ResizeFont "-adobe-new century schoolbook-bold-r-normal-*-18-*-*-*-*-*-*-*"
MenuFont "-adobe-new century schoolbook-medium-i-*-*-12-*-*-*-*-*-iso8859-1"
IconFont "-adobe-new century schoolbook-medium-r-normal-*-12-*-*-*-*-*-*-*"
IconManagerFont "-adobe-new century schoolbook-medium-r-normal-*-10-*-*-*-*-*-*-*"

# ClientBorderWidth

#BorderWidth 3
IconRegion      "144x896-0+0" North West 72 72
#NoIconManagers
NoRaiseOnMove
#OpaqueMove
#RandomPlacement
#Zoom 16	#no grow and shrink boxes

UnknownIcon "xpm:unknown1.xpm"



ForceIcons
NoShowOccupyAll
#OpaqueResize
ShowWorkSpaceManager
StartInMapState
WorkSpaceManagerGeometry "250x100+420-0" 3

#UseThreeDBorders
UseThreeDMenus
UseThreeDTitles
UseThreeDIconManagers
#WorkSpaces {
#    "Tunix"   {"#686B9F" "white" "DeepSkyBlue" "white" "xpm:background6.xpm"}
#    "Work"    {"#619AAE" "white" "white" "firebrick" "xpm:background2.xpm"}
#    "Dummy"   {"#727786" "white" "salmon" "white" "xpm:background7.xpm"}
#    "Zeus"    {"#8C5b7A" "white" "MidnightBlue" "white" "xpm:background4.xpm"}
#    "Arcadia" {"#727786" "white" "DeepSkyBlue" "white" "xpm:background8.xpm"}
#    "Infosystems" {"#8C5b7A" "white" "chartreuse" "white" "xpm:background9.xpm"}
#}

WorkSpaces {
    "1" {"#686B9F" "white" "darkgreen" "white"}
    "2" {"#619AAE" "white" "MidnightBlue" "firebrick"}
    "3" {"#727786" "white" "lightgreen" "white"}
    "4" {"#8C5b7A" "white" "SkyBlue" "white"}
    "5" {"#727786" "white" "salmon" "white"}
    "6" {"#8C5b7A" "white" "chartreuse" "white"}
}


OccupyAll
{
  "Console"
  "TWM Icon Manager"
  "VTWM Icon Manager"
  "Virtual Desktop"
  "WorkSpaceManager"
  "xmailbox"
  "xclock"
  "oclock"
  "xload"
  "second_load"
  "third_load"
  "xman"
  "mxman"
  "xbiff"
  "xbuffy"
  "xmultibiff"
  "xcal"
  "xpostit"
  "xmpostit"
  "ToDo"
  "Irc"
  "Xirc"
  "Zircon"
}

Occupy {
  "xgopher"    {"Infosystems"}
  "Mosaic"     {"Infosystems"}
  "Netscape"   {"Infosystems"}
  "Arena"      {"Infosystems"}
  "zeus"       {"Zeus"}
  "arcadia"    {"Arcadia"}
  "xtwho"      {"Dummy"}
}

Color
{
    BorderColor           "Red"
    DefaultBackground     "blue"
    DefaultForeground     "gray85"
    BorderTileBackground  "DeepSkyBlue1" {
	"xterm"		"DeepSkyBlue3"
    }
    BorderTileForeground  "Black" {
	"xterm" "DeepSkyBlue3"
    }
    TitleBackground       "DeepSkyBlue1" {
	"xterm" "DeepSkyBlue3"
    }
    TitleForeground       "Black" {
	"xterm" "White"
    }
    MenuBackground "gray85"
    MenuForeground "black"
    MenuTitleBackground   "gray70"
    MenuTitleForeground   "White"
    IconBackground        "LightSlateBlue"
    IconForeground        "White"
    IconBorderColor       "gray85"
    IconManagerBackground "DeepSkyBlue1" {"Axe" "DeepSkyBlue3" "xload" "DeepSkyBlue2"}
    IconManagerForeground "Black"
    MapWindowBackground   "DeepSkyBlue1" {
	"root*" "Red"
	"xterm" "DeepSkyBlue3"
	"Axe"	"Yellow"
    }
    MapWindowForeground   "Black" {
	"xterm" "White"
    }
}

Pixmaps { TitleHighlight "hlines2" }


IconManagerDontShow {
    "TWM Icon Manager"
    "VTWM Icon Manager"
    "Virtual Desktop"
    "WorkSpaceManager"
    "Irc"
}

NoTitle {                  # little programs that look like icons
    "TWM Icon Manager"
    "VTWM Icon Manager"
    "Virtual Desktop"
    "WorkSpaceManager"
    "xmailbox"
    "xclock"
    "oclock"
    "xload"
    "second_load"
    "third_load"
    "xbiff"
    "xbuffy"
    "xmultibiff"
    "xman"
    "xcal"
    "Irc"
#    "Console"
}

AutoRaise
{
#  "Console"
  "TWM Icon Manager"
  "VTWM Icon Manager"
  "Virtual Desktop"
  "WorkSpaceManager"
}

Icons
{
  "Xfd"         "xfd_icon"
  "LRom"        "@LRom.xpm"
  "HP LaserROM/UX" "@LRom1.xpm"
  "Audio"       "@audio_editor.xpm"
  "Ghostview"   "@arthur.xpm"
  "Datebook"    "@datebook.xpm"
  "XCalendar"   "@datebook.xpm"
  "xemacs"      "@emacs.xpm"
  "HPterm"      "@hpterm.xpm"
  "Pixmap"      "@pixmap.xpm"
  "xpostme"     "@postit.xpm"
  "XPostit"     "@postit.xpm"
  "XmPostit"    "@postit.xpm"
  "Xarchie"     "@xarchie.xpm"
  "XCalc"       "@xcalc.xpm"
  "Xcal"	"@datebook.xpm"
  "Zircon"      "@xirc.xpm"
  "XClipboard"  "@clipboard.xpm"
  "Axe"         "@xedit.xpm"
  "Xedit"       "@xedit.xpm"
  "Xgopher"     "@xgopher.xpm"
  "XGrab"       "@xgrab.xpm"
  "XHpcalc"     "@xhpcalc.xpm"
  "XIrc"        "@xirc.xpm"
  "Irc"         "@xirc.xpm"
  "Xman"        "@xman.xpm"
  "MXman"       "@xman.xpm"
  "Manual Page" "@xmanp.xpm"
  "Mosaic"      "@xmosaic.xpm"
  "Mail"        "@xnomail.xpm"
  "XBiff"       "@xnomail.xpm"
  "XRn"         "@xrn.xpm"
  "News"        "@xrn.xpm"
  "Composition" "@xrn-compose.xpm"
  "XTerm"       "@xterm.xpm"
  "Shell"       "@xterm.xpm"
  "ToDo"	"@postit.xpm"
}

#
# Define some useful functions for motion-based actions.
#
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }
Function "move-or-raiselower" { f.move f.deltastop f.raiselower }

#
# Set some useful bindings.
#

Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify

"Down"  = m    : r|i|w   : f.circledown
"Up"    = m    : r|i|w   : f.circleup

"Menu"  = m    : r|i|w   : f.togglestate


# mwm compatible bindings

"F3" = m : w|i : f.lower
"F4" = m : w|i : f.delete
"F5" = m : i : f.deiconify
"F7" = m : w : f.move
"F8" = m : w : f.resize
"F9" = m : w : f.iconify
"F10" = m : w : f.fullzoom

"Tab" = m : r|i|w : f.upiconmgr
"Tab" = m|s : r|i|w : f.downiconmgr
"Escape" = m    : r|i|w   : f.circledown
"Escape" = m|s  : r|i|w   : f.circleup
"Delete" = m|s  : r|i|w   : f.restart

Button1 =     : title             : f.function "move-or-raise"
Button1 =     : icon              : f.function "move-or-iconify"
Button1 =     : frame             : f.resize
Button1 = m   : frame|window|icon : f.function "move-or-lower"

Button2 =     : title|icon        : f.function "move-or-raiselower"
Button2 =     : frame             : f.resize
Button2 = m   : frame|window      : f.resize

Button3 =     : root              : f.menu "RootMenu"
Button3 =     : title|icon|frame  : f.menu "WinMenu"
Button3 = m   : frame|window|icon : f.move
Button3 = m|s : frame|window|icon : f.menu "WinMenu"


#
# And a menus with the usual things
#
Menu "RootMenu"
{
"Root Menu"             f.title
"Pin Menu" f.pin
"Shuffle Up"            f.circleup
"Shuffle Down"          f.circledown
"Refresh"               f.refresh
"Beep"                  f.beep
"-------------"         f.nop
"Calculator"            ! "xcalc &"

"Lock Display"          ! "xnlock"
"New Window"            ! "xterm -name Shell &"

"Remote Hosts"          f.menu "HostsMenu"
"Preferences"           f.menu "PrefMenu"
"Window Mgr"            f.menu "WinMgr"
"Tools"                 f.menu "ToolsMenu"
"-------------"         f.nop
"Restart"               f.restart
"Exit"                  f.quit

}

Menu "WinMenu"
{
"Window Menu"           f.title
"Restore"               f.deiconify
"Move"                  f.move
"Size"                  f.resize
"Minimize"              f.iconify
"Maximize"              f.fullzoom
"Raise"                 f.raise
"Lower"                 f.lower

"Autoraise"             f.autoraise
"Focus on Window"       f.focus
"Focus on Root"         f.unfocus
"Identify"              f.identify


"Refresh"               f.winrefresh

"-------------"         f.nop
"Occupy..."             f.occupy
"Occupy all"            f.occupyall
"Unoccupy"              f.vanish

"-------------"         f.nop

"Delete"                f.delete
"Kill"                  f.destroy

}

Menu "PrefMenu"
{
"Preferences"           f.title
"Pin Menu" f.pin
"Slow Mouse"            ! "xset m 1 1"
"Default Mouse"         ! "xset m default"
"Fast Mouse"            ! "xset m 5 5"
"-------------"         f.nop
"Bell Loud"             !"xset b 100 &"
"Bell Normal"           !"xset b on &"
"Bell Off"              !"xset b off&"
"-------------"         f.nop
"Gray Root"             ! "xsetroot -solid gray57"
"Default Root"          ! "xsetroot -default"
"-------------"         f.nop
"Key Click On"          ! "xset c 80"
"Key Click Off"         ! "xset c off"
"-------------"         f.nop
"Small window"          ! "echo 'XTerm*vt100*geometry: 80x24\\nHPterm*geometry: 80x24' | xrdb -merge"
"Big window"            ! "echo 'XTerm*vt100*geometry: 80x60\\nHPterm*geometry: 80x60' | xrdb -merge"
}


Menu "HostsMenu"
{
"Remote Hosts"  f.title
"Pin Menu" f.pin
"borabora"      ! "rclient borabora.pms.informatik.uni-muenchen.de /usr/bin/X11/xterm -ls -name Shell -n borabora.pms &"
"mars"          ! "rclient mars.cip.informatik.uni-muenchen.de /usr/bin/X11/xterm -ls -name Shell -n mars.cip &"
}


Menu "WinMgr"
{
"Window Manager"        f.title
"Pin Menu" f.pin

"(De)Iconify"           f.iconify
"Resize"                f.resize
"Maximize"              f.fullzoom
"Move"                  f.move
"Raise"                 f.raise
"Lower"                 f.lower
"Focus on Window"       f.focus
"Focus on Root"         f.unfocus
"Show Iconmgr"          f.showiconmgr
"Hide Iconmgr"          f.hideiconmgr


"Show Workspacemgr"     f.showworkspacemgr
"Hide Workspacemgr"     f.hideworkspacemgr
"Occupy..."             f.occupy
"Occupy all"            f.occupyall
"Unoccupy"              f.vanish
"Map On"                f.setmapstate
"Map Off"               f.setbuttonsstate
"Next Workspace"        f.nextworkspace
"Workspaces"            f.menu "WorkspaceMenu"

"Identify"              f.identify
"Refresh"               f.winrefresh
"Windows"               f.menu "TwmWindows"
"Delete"                f.delete
"Kill"                  f.destroy

}


Menu "WorkspaceMenu"
{
"One"                   f.gotoworkspace "One"
"Two"                   f.gotoworkspace "Two"
"Three"                 f.gotoworkspace "Three"
"Four"                  f.gotoworkspace "Four"
"Five"                  f.gotoworkspace "Five"
"Six"                   f.gotoworkspace "Six"
}


Menu "ToolsMenu"
{
"Tools"          f.title
"Pin Menu" f.pin
"Manual"                ! "xman -notopbox &"
"LaserROM"              ! "lrom &"
"Editors"               f.menu "EditMenu"
"Mail"                  ! "xterm +sb -name Mail -e pine &"
"News"                  ! "knews &"
"IRC"                   ! "xterm +sb -name Irc -e irc &"
"Mosaic"                ! "Mosaic &"
"Gopher"                ! "xgopher &"
"Archie"                ! "xarchie &"
"xv"			! "xv &"
"-------------"         f.nop
"Inspect"               f.menu "InspectMenu"
}

Menu "EditMenu"
{
"Vi"                    ! "xterm +sb -name Vi -geometry 80x60 -e vi &"
"aXe"                   ! "axe -noserver -geometry 80x60 &"
"xemacs"                ! "xemacs &"
"xedit"                 ! "xedit &"
}

Menu "InspectMenu"
{
"CPU"                   ! "xterm -e top &"
"Fonts"                 ! "xfontsel &"
"Keyboard"              ! "xkeycaps >/tmp/keycaps &"
"Events"                ! "xterm -title 'Reported events' -e xev &"
"Resources"             ! "editres &"
"Palette"               ! "xpalette &"
"Clipboard"             ! "xclipboard -iconic & xcutsel -selection CLIPBOARD &"
"Magnify"               ! "xmag &"
}
