# DECWindows Motif window manager V1.1
#
# Copyright  1990 Digital Equipment Corporation.  All rights reserved.
#
#-------------------------------------------------------------------
#
# Motif window manager configuation file
#
# This contains all window manager menu definitions and
# keyboard bindings.
#
# Here is a list of possible window manager functions:
#
# f.beep, f.lower, f.circle_down,
# f.circle_up, f.focus_color, f.exec, f.quit_mwm,
# f.focus_key, f.next_key, f.prev_cmap,
# f.prev_key, f.pass_key, f.maximize, f.menu, f.minimize,
# f.move, f.next_cmap, f.nop, f.normalize, f.normalize_and_raise,
# f.pack_icons, f.post_smenu, f.kill, f.refresh, f.resize,
# f.restart, f.send_msg, f.separator, f.raise,
# f.raise_lower, f.refresh_win, f.set_behavior, f.title
#
#
#-------------------------------------------------------------------
#
#               Menu descriptions
#
#
# Root Menu
# Workspace menu from MB1 on screen
Menu RootMenu
{
	"Workspace"  	        f.title
	"Shuffle Up"		f.circle_up
	"Shuffle Down"		f.circle_down
        "Pack Icons"            f.pack_icons
	no-label		f.separator
	"Restart..."		f.restart
	"Quit"			f.quit_mwm
}

# Default Window Menu
# Menu associated with window border
Menu DefaultWindowMenu
{
	"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
	"Lower"	   	_L	Alt<Key>F3	f.lower	 
        no-label				f.separator
	"Close"		_C	Alt<Key>F4	f.kill
}

# Default Iconbox menu
# Menu associated with the icon box
Menu IconBoxMenu
{
	"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
	"Lower"		_L	Alt<Key>F3	f.lower
  	 no-label				f.separator       
     	"Pack Icons"   	_P     	Alt<Key>F4      f.pack_icons
}
#
#-------------------------------------------------------------------
#
#               Key bindings
#
#
Keys DefaultKeyBindings
{
	Shift<Key>Escape	window|icon		f.post_wmenu
# Commented out to avoid conflict with Compose space
#	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.next_key
	Meta Shift<Key>Escape	root|icon|window	f.prev_key
	Meta Shift Ctrl<Key>exclam root|icon|window	f.set_behavior
	Meta 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
}
#                                                                
#-------------------------------------------------------------------
#
#               Button Bindings
#
#
# Button binding for default keyboard focus policy: Explicit
Buttons DefaultButtonBindings
{
	<Btn1Down>	icon|frame	f.raise
	<Btn2Down>	frame|icon	f.lower
	<Btn3Down>	icon		f.post_wmenu
	<Btn1Down>	root		f.menu	RootMenu
	<Btn3Down>	root		f.menu	RootMenu
        <Btn1Click2>    title           f.minimize
        Shift <Btn1Click> icon|frame f.lower
        Ctrl <Btn1Click> root|icon|frame f.next_key      
        Meta <Btn1Click> root|icon|frame f.next_key transient
}
 
# Button binding for Explicit Keyboard focus policy
Buttons ExplicitButtonBindings
{
	<Btn1Down>	frame|icon	f.raise
	<Btn2Down>	frame|icon	f.lower
	<Btn3Down>	frame|icon	f.post_wmenu
	<Btn1Down>	root		f.menu	RootMenu
	<Btn3Down>	root		f.menu	RootMenu
        <Btn1Click2>    title           f.minimize
        Shift <Btn1Click> icon|frame f.lower
        Ctrl <Btn1Click> root|icon|frame f.next_key      
        Meta <Btn1Click> root|icon|frame f.next_key transient
}
 
# Button binding for Pointer Keyboard focus policy
Buttons PointerButtonBindings
{
	<Btn1Down>	frame|icon	f.raise
	<Btn2Down>	frame|icon	f.lower
	<Btn3Down>	frame|icon	f.post_wmenu
	<Btn1Down>	root		f.menu	RootMenu
	<Btn3Down>	root		f.menu	RootMenu
        <Btn1Click2>    title           f.minimize
        Shift <Btn1Click> icon|frame f.lower
        Ctrl <Btn1Click> root|icon|frame f.next_key      
        Meta <Btn1Click> root|icon|frame f.next_key transient
}
