!
! Copyright (C) 1992 Silicon Graphics, Inc. All rights reserved.
! (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
! ALL RIGHTS RESERVED 
! 
! 
! Motif Release 1.2
! 

################################################################################
#                                                                              #
#                        4Dwm RESOURCE DESCRIPTION FILE                        #
#                        (system.4Dwmrc, $HOME/.4Dwmrc)                        #
#                                                                              #
# This file is less imposing than it seems at first glance.  It includes       #
# two clearly identified sets of values.                                       #
#                                                                              #
#	* OSF original values -- included so that anyone who wants to either   #
#	  use the original OSF values or see what changes SGI has made has     #
#	  an easy way to do so.                                                #
#                                                                              #
#	* 4Dwm values -- uses a superset of mwm functions, and takes	       #
#	  advantage of new features in 4Dwm.  Settings which establish SGI's   #
#	   default end user environment are included here.		       #
#                                                                              #
# We provide both versions to allow easy user switching and comparison         #
# between them.                                                                #
#                                                                              #
#                                                                              #
#   NOTE: To personalize this file, copy this file before editing it.          #
#   	  Personalize copies of the 4Dwm resource file typically               #
#         reside as:                                                           #
#                                                                              #
#  	$HOME/.4Dwmrc                                                          #
#                                                                              #
################################################################################



################################################################################
#                                                                              #
#                         BUTTON BINDING DESCRIPTIONS                          #
#                                                                              #
################################################################################

!!
!! OSF Button Binding Description(s)
!!

Buttons DefaultButtonBindings
{
	<Btn1Down>	icon|frame	f.raise
	<Btn3Down>	icon|frame	f.post_wmenu
	<Btn3Down>	root		f.menu	DefaultRootMenu
}
 
Buttons ExplicitButtonBindings
{
	<Btn1Down>	frame|icon	f.raise
	<Btn3Down>	frame|icon	f.post_wmenu
	<Btn3Down>	root		f.menu	DefaultRootMenu
!	<Btn1Up>	icon		f.restore
	Alt<Btn1Down>	window|icon	f.lower
!	Alt<Btn2Down>	window|icon	f.resize
!	Alt<Btn3Down>	window|icon	f.move

}
 
Buttons PointerButtonBindings
{
	<Btn1Down>	frame|icon	f.raise
	<Btn3Down>	frame|icon	f.post_wmenu
	<Btn3Down>	root		f.menu	DefaultRootMenu
	<Btn1Down>	window		f.raise
!	<Btn1Up>	icon		f.restore
	Alt<Btn1Down>	window|icon	f.lower
!	Alt<Btn2Down>	window|icon	f.resize
!	Alt<Btn3Down>	window|icon	f.move
}


!!
!! SGI 4Dwm Button Binding Descriptions
!!
Buttons 4DwmButtonBindings
{
        <Btn1Down>	root		f.menu	4DwmRootMenu
!       <Btn1Down>	window		f.raise
        <Btn1Click>	frame		f.raise
!    Click, so we don't disable the Btn1Down ability to move the icon.
!    Btn1Down doing an f.move is in the OSF manuals.
        <Btn1Click>	icon		f.restore
    Ctrl<Btn1Down>	frame|icon	f.lower
   Shift<Btn1Down>	frame|icon	f.raise

        <Btn2Down>	frame|icon	f.move
    Ctrl<Btn2Down>	frame|icon	f.lower
   Shift<Btn2Down>	frame|icon	f.raise

        <Btn3Down>	root		f.menu	Selected
        <Btn3Down>	frame|icon	f.post_wmenu
    Ctrl<Btn3Down>	frame|icon	f.post_wmenu
   Shift<Btn3Down>	frame|icon	f.post_wmenu
    Meta<Btn3Down>	window|icon	f.post_wmenu
}


################################################################################
#                                                                              #
#                          KEY BINDING DESCRIPTIONS                            #
#                                                                              #
################################################################################

!!
!! OSF Key Binding Description
!!

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


!!
!! SGI 4Dwm Key Binding Description
!!
Keys 4DwmKeyBindings
{
    # Same as the standard OSF Key Bindings
	Shift<Key>Escape	window|icon		f.post_wmenu
	Alt<Key>space		window|icon		f.post_wmenu
	Alt<Key>Tab		root|icon|window	f.next_key
	Alt Shift<Key>Tab	root|icon|window	f.prev_key
	Alt<Key>Escape		root|icon|window	f.circle_down
	Alt Shift<Key>Escape	root|icon|window	f.circle_up
	Alt Shift Ctrl<Key>exclam root|icon|window	f.set_behavior
	Alt<Key>F6		window			f.next_key transient
	Alt Shift<Key>F6	window			f.prev_key transient
	Shift<Key>F10		icon			f.post_wmenu
!	Alt Shift<Key>Delete	root|icon|window	f.restart

    # SGI added key bindings
	Shift<Key>Escape	root			f.menu 4DwmRootMenu
	Alt<Key>space		root			f.menu 4DwmRootMenu
}


################################################################################
#                                                                              #
#                          ROOT MENU PANE DEFINITIONS                          #
#                                                                              #
################################################################################

!!
!! OSF Root Menu Description (this menu must be explicitly posted via f.menu)
!!

Menu DefaultRootMenu
{
	"Root Menu"		f.title
	"New Window"		f.exec "xterm &"
	"Shuffle Up"		f.circle_up
	"Shuffle Down"		f.circle_down
	"Refresh"		f.refresh
	"Pack Icons"		f.pack_icons
!	"Toggle Behavior..."	f.set_behavior
	 no-label		f.separator
	"Restart..."		f.restart
!	"Quit..."		f.quit_mwm

}

Menu RootMenu_1.1
{
	"Root Menu"		f.title
	"New Window"		f.exec "xterm &"
	"Shuffle Up"		f.circle_up
	"Shuffle Down"		f.circle_down
	"Refresh"		f.refresh
!	"Pack Icons"		f.pack_icons
!	"Toggle Behavior"	f.set_behavior
	no-label		f.separator
	"Restart..."		f.restart
}


!!
!! SGI 4Dwm Root Menu Descriptions
!!
Menu 4DwmRootMenu
{
        "4D Window Manager"             f.title
	"Log Out"		  _L	f.exec "/usr/bin/X11/endsession"
}

Menu 4DwmLongRootMenu
{
	"4D Window Manager"		f.title
!	"New Window"		  _N	f.exec "xterm &"
	"Shuffle Up"		  _U	f.circle_up
	"Shuffle Down"		  _D	f.circle_down
	"Tidy Icons"		  _T	f.pack_icons
	"Minimize All"		  _M	f.minimize_all
	"Restore All"		  _A	f.restore_all
	"Refresh All"		  _f	f.refresh
	no-label			f.separator
	"Restart 4Dwm"		  _R	f.restart
	"Quit 4Dwm"		  _Q	f.quit_mwm
	no-label			f.separator
	"Log Out"		  _L	f.exec "/usr/bin/X11/endsession"
}

!!
!! Dynamic menus aren't as flexible as others.  They only work in one context.
!! This menu may get additional/changing entries from the desktop.
!!
Menu Selected dynamic
{
        "Desktop"			f.title
	"HelioRIP"		    	f.exec "/bitslib/bin/startHelio"
	no-label			f.separator
	"Service"                       f.exec "/bitslib/service/service"
	no-label			f.separator
	"Log Out"		  _L	f.exec "/usr/bin/X11/endsession"
	no-label			f.separator
}

################################################################################
#                                                                              #
#                           WINDOW PANE DEFINITIONS                            #
#                                                                              #
################################################################################

!!
!! OSF Default Window Menu Description
!!

Menu DefaultWindowMenu
{
	Restore		_R	Alt<Key>F5	f.restore
	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
}


!!
!! SGI 4Dwm Window Menu Description
!!

Menu 4DwmWindowMenu
{
        Restore         _R      Alt<Key>F5      f.restore
        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
	Raise		_a	Alt<key>F1	f.raise
        Lower           _L      Alt<Key>F3      f.lower
        no-label                                f.separator
        Close           _C          	        f.kill
        Exit	        _E      	        f.quit_app
}

!!
!!  END OF 4Dwm RESOURCE DESCRIPTION FILE
!!
