#
#  DEFAULT mwm RESOURCE DESCRIPTION FILE (.mwmrc)
#


#
# menu pane descriptions
#

Menu RootMenu
{
    @wide_weave			f.title
    "New Window"		f.exec "xterm &"
    "Start Clock"		f.exec "xclock -geometry 100x90-1+1 &"
    "Start Load"		f.exec "xload -geometry 150x90-130+1 -bd red &"
    no-label			f.separator
#   "Toggle Behavior"		f.set_behavior
    "Kill Motif Bindings"	f.exec "xprop -root -remove _MOTIF_BINDINGS"
    no-label			f.separator
    "Refresh"			f.refresh
    "Shuffle Up"		f.circle_up
    "Shuffle Down"		f.circle_down
    no-label			f.separator
    "Restart Mwm"		f.restart
    "Quit Mwm"			f.quit_mwm
}

Menu AppsMenu
{
    "Applications"		f.title
    "XCalc"			f.exec "xcalc &"
    "XMag"			f.exec "xmag &"
    "XLoad"			f.exec "nice xload -bd red &"
    no-label			f.separator
    "Demos"			f.menu	DemoMenu
}

Menu DemoMenu
{
    "ico"		f.exec "ico &"
    "psycho"		f.exec "psycho -display :0.0 -display :0.0 &"
    "muncher"		f.exec "muncher &"
    "xmandel"		f.exec "xmandel &"
    "xeyes"		f.exec "xeyes &"
    no-label		f.separator
    "Worms"		f.exec "worm &"
    "Xspy"		f.exec "xspy &"
}


Menu MwmMenu
{
    "Mwm functions"		f.title
    "Next Icon"			f.next_key icon
    "Next Window"		f.next_key window
    "Next Transient"		f.next_key transient
    "Lower Application"		f.menu LowerAppsMenu
    "Raise Application"		f.menu RaiseAppsMenu
    no-label			f.separator
    "Pack Icons"		f.pack_icons
    "Refresh"			f.refresh
    no-label			f.separator
    "Kill Motif Bindings"	f.exec "xprop -root -remove _MOTIF_BINDINGS"
    "Toggle Behavior"		f.set_behavior
    "Toggle Pass keys"		f.pass_keys
    no-label			f.separator
    "Restart Mwm"		f.restart
    "Quit Mwm"			f.quit_mwm
}

Menu RaiseAppsMenu
{
    "Terminals"		f.raise -XTerm
    "Emacses"		f.raise -emacs
    "XLoads"		f.raise -XLoad
    "Xeyes"		f.raise -XEyes
}

Menu LowerAppsMenu
{
    "Terminals"		f.lower -XTerm
    "Emacses"		f.lower -emacs
    "XLoads"		f.lower -XLoad
    "Xeyes"		f.lower -XEyes
}

# Default Window Menu Description

Menu DefaultSystemMenu
{
    Restore		_R	Alt<Key>F5	f.normalize
    Move		_M	Alt<Key>F7	f.move
    Size		_S	Alt<Key>F8	f.resize
    Minimize		_n	Alt<Key>F9	f.minimize
    Maximize		_x	Alt<Key>F10	f.maximize
    Refresh		_f	Alt<Key>F2	f.refresh_win
    Lower		_L	Alt<Key>F3	f.lower
    no-label					f.separator
    Close		_C	Alt<Key>F4	f.kill
}


#
# key binding descriptions
#

Keys DefaultKeyBindings
{
    Shift<Key>Escape		window|icon		f.post_wmenu
    Meta<Key>space		window|icon		f.post_wmenu
    Meta<Key>Tab		root|icon|window	f.next_key
    Meta Shift<Key>Tab		root|icon|window	f.prev_key
    Meta<Key>Escape		root|icon|window	f.circle_up
    Meta Shift<Key>Escape	root|icon|window	f.circle_down
    Meta Shift Ctrl<Key>exclam	root|icon|window	f.set_behavior
    Meta<Key>F6			window			f.next_key transient
    Meta Shift<Key>F6		window			f.prev_key transient
	<Key>F4			icon			f.post_wmenu
    Meta Shift<Key>Delete	root|icon|window	f.restart
}

#
# button binding descriptions
#

Buttons DefaultButtonBindings
{
    <Btn1Down>		frame|icon		f.raise
    <Btn3Down>		frame|icon		f.post_wmenu
!    <Btn1Down>		window|icon|root	f.focus_color
    <Btn1Down>		root			f.menu	RootMenu
    <Btn2Down>		root			f.menu	AppsMenu
    <Btn3Down>		root			f.menu	MwmMenu
    <Btn1Down>		window			f.raise
    Meta<Btn1Down>	window|icon		f.lower
    Meta<Btn2Down>	window|icon		f.resize
    Meta<Btn3Down>	window|icon		f.move
    Meta Shift<Btn1Down> window|icon		f.minimize
    Meta Shift<Btn2Down> window|icon		f.next_cmap
    Meta Shift<Btn3Down> window|icon		f.post_wmenu
}

#
#  END OF mwm RESOURCE DESCRIPTION FILE
#
