# 08.10.93 v1.01 Keven Fedirko
# Old users (pre 2.6 and pre IRIX 4.0) will appreciate this file.
# It restores the once beloved 'F12' key to stow SOFTIMAGE.

# For additional information see:	/usr/tutor/Customize/example.4Dwmrc
#					/usr/people/4Dgifts/.4Dwmrc	

# PLEASE Note:  Obviously the Info -> Supra Keys listing of Alt+F9 won't be
# true anymore, since the allpowerful 'F12' has replaced it!

################################################################################
#                                                                              #
#                        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.                                                                #
#                                                                              #
################################################################################



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

#
# OSF Button Binding Descriptions
#
Buttons DefaultButtonBindings
{
        <Btn1Down>      icon|frame      f.raise
        <Btn3Down>      icon            f.post_wmenu
        <Btn3Down>      root            f.menu  RootMenu
!       <Btn1Up>        icon            f.normalize
}
 
Buttons ExplicitButtonBindings
{
        <Btn1Down>      frame|icon      f.raise
        <Btn3Down>      frame|icon      f.post_wmenu
        <Btn3Down>      root            f.menu  RootMenu
!       <Btn1Up>        icon            f.normalize
        Meta<Btn1Down>  window|icon     f.lower
!       Meta<Btn2Down>  window|icon     f.resize
!       Meta<Btn3Down>  window|icon     f.move
}
 
Buttons PointerButtonBindings
{
        <Btn1Down>      frame|icon      f.raise
        <Btn3Down>      frame|icon      f.post_wmenu
        <Btn3Down>      root            f.menu  RootMenu
        <Btn1Down>      window          f.raise
!       <Btn1Up>        icon            f.normalize
        Meta<Btn1Down>  window|icon     f.lower
!       Meta<Btn2Down>  window|icon     f.resize
!       Meta<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.normalize
    Ctrl<Btn1Down>	frame|icon	f.lower
   Shift<Btn1Down>	frame|icon	f.raise
Shift Ctrl<Btn1Down>    window          f.raise_resize

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

        <Btn3Down>	root		f.menu	4DwmRootMenu
        <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
Shift Ctrl<Btn3Down>    window          f.post_wmenu
}


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

#
# OSF 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.next_key
        Meta Shift<Key>Escape   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
}


#
# SGI 4Dwm key binding descriptions
#
Keys 4DwmKeyBindings
{
    # Same as the standard OSF Key Bindings
        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.next_key
        Meta Shift<Key>Escape   root|icon|window        f.prev_key
        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

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


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

#
# OSF Root Menu Description
#
Menu RootMenu
{
        "Root Menu"             f.title
        "New Window"            f.exec "xterm &"
        "Shuffle Up"            f.circle_up
        "Shuffle Down"          f.circle_down
        "Refresh"               f.refresh
!       no-label                f.separator
!       "Pack Icons"            f.pack_icons
!       "Toggle Behavior"       f.set_behavior
!!      "Kill Motif Bindings"   f.exec "xprop -root -remove _MOTIF_BINDINGS"
        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.normalize_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"
}

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

#
# OSF Default Window Menu Description
#

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
}


#
# SGI 4Dwm Window Menu Description.
#

Menu 4DwmWindowMenu
{
        Restore         _R      Alt<Key>F5      f.normalize
        Size            _S      Alt<Key>F8      f.resize
	Move            _M      Alt<Key>F7      f.move
        Minimize        _n      <Key>F12	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
        Quit	        _Q      	        f.quit_app
}
