#
# Motif Window Manager - Configuration
#
#   This file defines menus, key bindings, and button bindings.
#   Behavior and appearance characteristics are controlled by
#   resources set by xrdb, typically defined in the file .xresources.
#
#
# Menus:

Menu DefaultRootMenu
{
	"Root Menu"	f.title
	"New Window"	f.exec "xterm +ut -fn 9x15  &"
	no-label	f.separator
	"Shuffle Up"	f.circle_up
	"Shuffle Down"	f.circle_down
	"Refresh"	f.refresh
	no-label	f.separator
	"Restart"	f.restart
	"Quit"		f.quit_mwm
}

Menu CommandMenu
{
	"Commands"		f.title
	"TopSpin"		f.exec "start-topspin"
	"Firefox Webbrowser"		f.exec "firefox"
	"Thunderbird Email Client"	f.exec "thunderbird"
	"Editor"			f.exec "gedit"
}


Menu DefaultWindowMenu
{
	"Window Menu"		f.title
	no-label		f.separator
	"Move"		_M	Ctrl <Key>F2	f.move
	#"Size"		_S	Ctrl <Key>F3	f.resize
	"Raise"		_a	Ctrl <Key>F7	f.raise_lower
	"Minimize"	_n	Ctrl <Key>F4	f.minimize
	#"Maximize"	_x	Ctrl <Key>F5	f.maximize
	"Restore"	_R	Ctrl <Key>F1	f.normalize
	"Lower"		_L	Ctrl <Key>F6	f.lower
	"Kill"		_K	Ctrl <Key>F8	f.kill
}

#
# Key Bindings:
#
Keys DefaultKeyBindings
{
	Shift<Key>Escape		icon|window		f.post_wmenu
	Ctrl<Key>0			root|icon|window	f.menu DefaultRootMenu
	Ctrl<Key>semicolon		root|icon|window	f.next_key window
	Ctrl<Key>quoteright		root|icon|window	f.prev_key window
	Meta<Key>space			icon|window		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.next_key
	Meta Shift<Key>Escape		root|icon|window	f.prev_key
	Meta Ctrl Shift<Key>exclam	root|icon|window	f.set_behavior
	Meta<Key>F6			window			f.next_key transient
        Ctrl<Key>Home                   root|icon|window        f.menu DefaultRootMenu
	Meta Ctrl<Key>End               root|icon|window        f.exec "KillSession"

}

#
# Button Bindings:
#
Buttons DefaultButtonBindings
{
	<Btn1Down>	root		f.menu CommandMenu
	<Btn1Down>	frame		f.raise
	Meta<Btn1Down>	window		f.raise
	<Btn1Down>	icon		f.normalize
	<Btn2Down>	frame|icon	f.move
	<Btn3Down>	root		f.menu DefaultRootMenu
	<Btn3Down>      frame|icon      f.post_wmenu
	Meta<Btn3Down>	window		f.raise_lower
}

