! DECWindows Motif window manager V1.1
!
! Copyright © 1990, 1991 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,
! f.dec_customize
!
!-------------------------------------------------------------------
!
!               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
        "Next Window"           f.next_key
        "Previous Window"       f.prev_key
	no-label		f.separator               
        "Pack Icons"            f.pack_icons
        "Options"               f.menu MwmCustomizeRootMenu
	no-label		f.separator               
        "Help"                  f.menu MwmHelpRootMenu    
	"Restart..."		f.restart                
	"Quit (Logout)"		f.quit_mwm
}

! Workspace menu from Window menu 
Menu WorkspaceMenu 
{
	"Shuffle Up"   	  _U	f.circle_up
	"Shuffle Down"	  _D 	f.circle_down
        "Next Window"     _N    f.next_key
        "Previous Window" _v    f.prev_key
	no-label		f.separator               
        "Pack Icons"      _P    f.pack_icons
        "Options"         _O    f.menu MwmCustomizeMenu
	no-label	   	f.separator
	"Restart..."	  _R	f.restart
}

! Customize menu from root menu
Menu MwmCustomizeRootMenu
{
  	"Workspace..."               f.dec_customize workspace
	"Border..."                  f.dec_customize border
	"Border Colors..."           f.dec_customize bordercolor
        "Icons..."                   f.dec_customize icons
        "Icon Colors..."             f.dec_customize iconcolor 
        "Matte..."                   f.dec_customize matte
	no-label	      	     f.separator
        "Apply Current Settings"     f.dec_customize apply
        "Reset to Last Saved Settings" f.dec_customize reset
        "Reset to Default"           f.dec_customize default
}                          

! Customize menu from window menu 
Menu MwmCustomizeMenu
{
  	"Workspace..."     _W        f.dec_customize workspace
	"Border..."        _B        f.dec_customize border
	"Border Colors..." _o        f.dec_customize bordercolor
        "Icons..."         _I        f.dec_customize icons
        "Icon Colors..."   _c        f.dec_customize iconcolor
        "Matte..."         _M        f.dec_customize matte
	no-label	      	     f.separator
        "Apply Current Settings"       _A  f.dec_customize apply
        "Reset to Last Saved Settings" _R  f.dec_customize reset
        "Reset to Default"             _D  f.dec_customize default
}

! Help menu from window menu
Menu MwmHelpMenu        
{ 
	"On Window Manager..." _W f.dec_help mwm
        "On Version..."        _V f.dec_help version
        "On Terms..."          _T f.dec_help terms
}                         

! Help menu from root menu
Menu MwmHelpRootMenu    
{        
	"On Window Manager..."    f.dec_help mwm
        "On Version..."           f.dec_help version
        "On Terms..."             f.dec_help terms
}                         

! 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
        "Workspace"     _W                      f.menu WorkspaceMenu
	"Close"		_C	Alt<Key>F4	f.kill
        "Help"          _H                      f.menu MwmHelpMenu        
}

! 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       
        "Workspace"     _W                      f.menu WorkspaceMenu
     	"Pack Icons"   	_P     	Alt<Key>F4      f.pack_icons
        "Help"          _H                      f.menu MwmHelpMenu        
}
!
!-------------------------------------------------------------------
!
!               Key bindings
!
!
Keys DefaultKeyBindings
{
	Shift<Key>Escape	window|icon		f.post_wmenu
	Meta<Key>Select         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
	<Btn3Down>	        icon|frame	f.post_wmenu
	<Btn1Down>	        root		f.menu	RootMenu
	<Btn3Down>	        root		f.menu	RootMenu
        <Btn1Click2>            title           f.minimize
        Shift <Btn1Click2>      icon            f.minimize
        Shift <Btn1Click>       icon|frame      f.lower
        Ctrl <Btn1Click>        root|icon|frame f.next_key      
        Ctrl Shift <Btn1Click>  root|icon|frame f.prev_key      
        Meta <Btn1Click>        root|icon|frame f.next_key transient
        Meta Shift <Btn1Click>  root|icon|frame f.prev_key transient
}
 
! Button binding for Explicit Keyboard focus policy
Buttons ExplicitButtonBindings
{
	<Btn1Down>	        icon|frame	f.raise
	<Btn3Down>	        icon|frame	f.post_wmenu
	<Btn1Down>	        root		f.menu	RootMenu
	<Btn3Down>	        root		f.menu	RootMenu
        <Btn1Click2>            title           f.minimize
        Shift <Btn1Click2>      icon            f.minimize
        Shift <Btn1Click>       icon|frame      f.lower
        Ctrl <Btn1Click>        root|icon|frame f.next_key      
        Ctrl Shift <Btn1Click>  root|icon|frame f.prev_key      
        Meta <Btn1Click>        root|icon|frame f.next_key transient
        Meta Shift <Btn1Click>  root|icon|frame f.prev_key transient
}
 
! Button binding for Pointer Keyboard focus policy
Buttons PointerButtonBindings
{
	<Btn1Down>	        icon|frame	f.raise
	<Btn3Down>	        icon|frame	f.post_wmenu
	<Btn1Down>	        root		f.menu	RootMenu
	<Btn3Down>	        root		f.menu	RootMenu
        <Btn1Click2>            title           f.minimize
        Shift <Btn1Click2>      icon            f.minimize
        Shift <Btn1Click>       icon|frame      f.lower
        Ctrl <Btn1Click>        root|icon|frame f.next_key      
        Ctrl Shift <Btn1Click>  root|icon|frame f.prev_key      
        Meta <Btn1Click>        root|icon|frame f.next_key transient
        Meta Shift <Btn1Click>  root|icon|frame f.prev_key transient
}
