#
# $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.
#

ClientBorderWidth

# 	Color {
# 	    BorderColor "slategrey"
# 	    BorderTileForeground "black"
# 	    BorderTileBackground "white"
# 	    DefaultBackground "gray85"
# 	    DefaultForeground "black"
# 	    IconBackground "white"
# 	    IconBorderColor "blue"
# 	    IconForeground "black"
# 	    IconManagerBackground "white" {
# 		"Emacs"		"burlywood1"
# 		"xterm"		"bisque2"
# 		"xconsole"	"burlywood3"
# 		"xmh"		"cornsilk"
# 		}
# 	    IconManagerForeground "darkslategray" {
# 		"Emacs"		"darkslategray"
# 		"xterm"		"darkslategray"
# 		"console"	"darkslategray"
# 		"xmh"		"darkslategray"
# 	    }
# 	    IconManagerHighlight "darkslategray"
# 	    MenuBackground "bisque1"
# 	    MenuForeground "black"
# 	    MenuShadowColor "gray"
# 	    MenuTitleBackground "bisque3"
# 	    MenuTitleForeground "black"
# 	    TitleBackground "burlywood3"
# 	    TitleForeground "black"
# 	}

DecorateTransients

	IconManagerDontShow { 
	    "xclock" 
	    "xbiff" 
	    "xbiff++" 
	    "xman"
	    "xload"
	    "xpostit"
	    "PostItNote" 
	}

AutoRaise {
	"TWM Icon Manager"
	}

IconFont "-*-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*"
IconManagerFont "-*-helvetica-bold-r-*-*-11-*-*-*-*-*-*-*"
MenuFont "-*-fixed-bold-*-*-*-13-*-*-75-*-*-iso8859-1"
MoveDelta 2

NoGrabServer
NoRaiseOnMove
NoRaiseOnResize
NoTitle
{
    "oclock"
    "xbiff"
    "xclock"
    "xeyes"
    "xman"
    "xload"
    "sm"
}
OpaqueMove
#RandomPlacement
ResizeFont "-*-helvetica-bold-r-*-*-11-*-*-*-*-*-*-*"
TitleFont "-*-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*"
RestartPreviousState
#ShowIconManager
#SortIconManager
Zoom 20

DefaultFunction f.beep



#
# Define some useful functions for motion-based actions.
#
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 }

#
# Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.menu "defops"
Button2 = : root : f.menu "applications"
Button3 = : root : f.menu "shells"

Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower
Button3 = : title : f.circleup

Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify

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

Button1 = s : title : f.leftzoom
Button2 = s : title : f.fullzoom
Button3 = s : title : f.rightzoom

Button1 = c : title : f.zoom

"Select" = :all    :f.circledown

#
# And a menus with the usual things
#
menu "defops"
{
"Twm"   f.title
"Iconify"       f.iconify
"Resize"        f.resize
"Move"          f.move
"Raise"         f.raise
"Lower"         f.lower
"Autoraise on/off " f.autoraise
""              f.nop
"Identify"      f.identify
"Focus"         f.focus
"Unfocus"       f.unfocus
"Show Iconmgr "  f.showiconmgr
"Hide Iconmgr "  f.hideiconmgr
""              f.nop
"Kill"          f.destroy
"Delete"        f.delete
""              f.nop
"xrdb .Xdefaults " f.exec "/usr/bin/X11/xrdb -load -nocpp $HOME/.Xdefaults &"
"Restart"       f.restart
"Exit"          f.quit
}
menu "applications"
{
"Applications"  f.title
"Xterm"		f.exec "/usr/bin/X11/xterm &"
"Mosaic"	f.exec "/usr/local/bin/mosaic-2.7b5 &"
"News"          f.exec "/usr/local/bin/xrn &"
"CPU-Load "     f.exec "/usr/bin/X11/xload &"
"Manual"        f.exec "/usr/bin/X11/xman &"
"Calculator"    f.exec "/usr/bin/X11/xcalc &"
}
menu "shells"
{
"Unused"        f.title
}

