#**********************************************************************
#
# Sample .twmrc
#
#**********************************************************************

ReverseVideo
# FocusGadget
WarpCursor
NoTitleFocus
BorderWidth	2
TitleFont	"8x13"
MenuFont	"8x13"
IconFont	"8x13"
ResizeFont	"fg-22"

Button1		f.menu "TWM"
Button2		f.menu "TWM"
Button3		f.menu "TWM"
Button4		f.nop
Button5		f.nop

TitleButton1	t.raise
TitleButton2	t.move
TitleButton3	t.lower
TitleButton4	t.nop
TitleButton5	t.nop

Monochrome
{
# if you have xterms with white backgrounds, make this black so that the
# border highlights correctly when you enter a window.
	BorderColor	"white"
}

Color
{
    BorderColor "red"
    TitleForeground "white"
    TitleBackground "blue"
    MenuForeground "yellow"
    MenuBackground "darkgreen"
    MenuTitleForeground "red"
    MenuTitleBackground "blue"
    IconForeground "darkgreen"
    IconBackground "cadetblue"
    IconBorderColor "green"
}

#Button = KEYS : CONTEXT : FUNCTION
#----------------------------------
Button1 =      : root    : f.circleup
Button2 =      : root    : f.circledown
Button3 =      : root    : f.menu "TWM"
Button1 =  m   : window  : f.raise
Button2 =  m   : window  : f.lower
Button3 =  m   : window  : f.menu "TWM"
Button1 =  m   : title   : f.raise
Button2 =  m   : title   : f.lower
Button3 =  m   : title   : f.menu "TWM"
Button1 =      : title   : f.raise
Button2 =      : title   : f.move
Button3 =      : title   : f.lower

ForceIcons
IconDirectory	"~/icons"
Icons
{
  "xterm"	"xterm.bm"    # obtained from /usr/include/X11/bitmaps
  "xfd"		"xfd_icon"	# obtained from /usr/include/X11/bitmaps
}
UnknownIcon	"unknown"

NoTitle
{
	"xclock"
	"xckmail"
	"xbiff"
}

# we autoraise most things. Religious issue, it seems - some people *HATE*
# autoraise.
AutoRaise
{
	"xterm"
	"texx"
	"xtroff"
	"bitmap"
	"emacs"
	"gnuemacs"
	"xmh"
}

menu "TWM"
{
"TWM Window Manager"	f.title
"Refresh"		f.refresh
"Focus on Root"		f.unfocus
"(De)Iconify"		f.iconify
"Move Window"		f.move
"Resize Window"		f.resize
"Raise Window"		f.raise
"Lower Window"		f.lower
"Focus on Window"	f.focus
"Destroy Window"	f.destroy
"Source .twmrc"		f.twmrc
"Cut File"		f.cutfile
"twm Version"		f.version
"New windows"		f.menu "logins"
"Kill twm"		f.menu "exit"
}

menu "logins"
{
"New Windows"	f.title
"24 line"	!"xterm -title `hostname` -geometry 80x24 &"
"48 line"	!"xterm -title localhost -geometry 80x48 &"
#"bay"		!"xterm -title xterm_bay -geometry 80x24 -e rlogin bay &"
#"godzilla"	!"xterm -title xterm_godzilla -geometry 80x24 -e rlogin godzilla &"
}

menu "exit"
{
"Exit the Window manager"	f.title
"Select if you're sure"		f.quit
}
