# $Id: .fvwm2rc.m4,v 1.50 1996/06/13 21:28:09 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# NOTE: This must be preprocessed w/m4
# use: fvwm95 -f "FvwmM4 -debug .fvwm2rc"
#
# You may choose to grab the post-processed file, and use it
# as your permanent .fvwm2rc file. If you give the -debug option
# to FvwmM4, /tmp/fvwmrc* will have the file-- just cp it to ~/.fvwm2rc
# and you're all set.  You'll of course lose the fvwm2rc's ability to
# dynamically change options based on the machine or its configurarion
#
# Generally, I'd just let FvwmM4 parse this each time-- it's not a
# huge hit on a personal machine, since you hopefully aren't starting
# and restarting X all that much... you may want to temporarily use
# the static /tmp/fvwmrc* file while playing with configurations
# or if you're having problems.  It's always a good place to look to
# figure out problems with the settings.
#
#
# This should be run with something like:
# exec fvwm2 -f "FvwmM4 -debug .fvwm2rc.m4" -display :0 > .FVWM2-errors 2>&1
# in your .xinitrc file
#
# It is very helpful to use "tail -f .FVWM2-errors" to see what's happening,
# and what errors occured

# Get the user options.  This is the only file the casual user needs
# to worry about.
# define(`FVWM_USER_MODULE_PATH',`.')

# These are defined early for .defines and .defaults


# $Id: .fvwm2rc.defines,v 1.18 1996/06/13 22:09:16 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# Modified by Red Hat Software
#
# This file is m4-included by .fvwm2rc.m4
##############################################################################

# Note: This is preprocessed by m4, not cpp!
# a "#define" is a *comment* not a definition!

# Also note: m4 uses matching angled quotes `', not '' or `` like shells

# NO_TRACE_FVWM_PARSE turns off some forced errors which can help in
# locating your problems
#define(`NO_TRACE_FVWM_PARSE')

#----------------------------------------------------------------------------
# User option -- feel free to modify thsese
#
# USER_HOST_LIST is a list of hosts to allow as options for the hosts menu, etc.
# Any hosts you use frequently should be in here, comma separated, with the 
# whole list enclosed in round parentheses. eg. `(host1, host2, host3)'


# RLOGIN_OR_TELNET should be `rlogin' or `telnet', whichever you'd prefer to 
# use for remote logins


# By default, browser are looked for in the following order
#
# redbaron netscape grail arena
#
# and the first one found is used. You can override this search order
# by defining a browser here.
#define(`WWW_BROWSER', `netscape')

# Normally "WWW_BROWSER HELP_FILE" (or "WWW_BROWSER -url HELP_FILE" for
# redbaron) is run to display help. If you prefer to display the help in
# some other manner, define the command here. The following example will
# display the help in a currently running netscape window, or open one if
# none is already available.
#define(`BROWSER_HELP_COMMAND',sh -c "netscape -remote 'openURL(HELP_FILE)' || netscape HELP_FILE")

# HILIGHTFORE_COLOR, HILIGHTBACK_COLOR are the title bar colors for the window
# with the focus



# WINFORE_COLOR, WINBACK_COLOR are the title bar colors for the window w/o the focus



# MENUFORE_COLOR, MENUBACK_COLOR are the colors for menus



# MENUSHADE_COLOR is the color for greyed out menu items


# BG_COLOR is the color that the background will initially get set to
# Edit .fvwm2rc.init to change what commands get run at startup


# Uncomment for sound events (FvwmAudio) on by default
#define(`WANT_SOUND_EVENTS')

# Comment MINI_ICONS if you don't want to see mini-pixmaps in your menus, or 
# mini-pixmap button bars.  May be useful on a display with only 16 colors 
# or monochrome


# Uncomment USE_ICONS if you want to have windows iconized to your desktop
# define(`USE_ICONS')

# Uncomment this to get a Win95-like close "x" button at the far right of the 
# title bar. Leave commented if you find that it's too easy to click by accident
#define(`WANT_DELETE_BUTTON')

# Comment below if you want to you delete instead of close for button
# decorations window close operation. Delete won't kill a window that doesn't 
# respond to delete, close will kill it if the delete goes unrecognized (it 
# will always close the window, perhaps semi-violently).


# If defined, the focus follows the pointer. Otherwise focus is set by
# clicking on a window. Undefined this implements "ClickToFocus".
#define(`FOCUS_FOLLOWS_POINTER')

# Define this for interactive placement (InteractivePlacement), which forces
# the window manager to allow manual placement of all windows on the desktop.
#define(`INTERACTIVE_PLACEMENT')

# NUM_DESKTOPS is number of desktops -- each desktop is DESKTOP_SIZE panes


# DESKTOP_SIZE is a geometry specifying horizontal desktop x vertical desktops
# So 3x3 gives 9 panes per desktop


# OPAQUE_MOVE_SIZE is the percentage of screen that a window must be smaller than
# to be moved opaquely


# EDGE_SCROLL_RESISTANCE, EDGE_MOVE_RESISTANCE are numbers given to Fvwm's
# EdgeResistance configuration command.  See fvwm2(1)



# AUTO_RAISE_SPEED is the time in ms before auto-raising a window with FvwmAuto


# Uncomment USE_AUTO_RAISE turn turn on window autoraising by default
#define(`USE_AUTO_RAISE')

# Define this if you want to start a web browser when X starts up
# define(`START_BROWSER')

# Uncomment below if you have a win95 keyboard (one w/ the extra keys)
#define(`Win95Keys')

# Uncomment below if you want to use the Fvwm Task Bar (w/ Fvwm95, this is nice)


# Uncomment USE_VERTICAL_BUTTON_BARS if you want your tearoff button bars to be vertical
#define(`USE_VERTICAL_BUTTON_BARS')

#----------------------------------------------------------------------------
# System options -- you probably don't need to change these!
#

# Pixmap Path will always include /usr/X11/include/pixmaps after the below


# Icon (bitmap) path will always include /usr/X11/include/bitmaps after the below


# USER_MODULE_PATH will always include FVWMDIR (compile time option passed in to FvwmM4)


# MAIL_SPOOL_DIR is used by Fvwm95's FvwmTaskBarMailBox option.
# Probably will need to use the FvwmM4 define-d `USER' macro to set this one


# Uncomment if your version of fvwm allows title icons-- Fvwm95 does, but versions
# of fvwm <= 2.0.42 do not


# The directory to use for temporary files created by m4's syscmd, then include-d in


# The release of X-- use 6 for X11R5, 5 for X11R5


# Uncomment for auto generation of xlock/screensaver options-- useful if your
# xlock produces a standard usage message for the -h option.
# Comment it to use either the R5 or R6 standard choices (depends on XRELEASE, 
# above)


# Uncomment for auto generation of host menu-- uses /etc/hosts.
# Comment if you're using NIS, yp, or if you just have a big /etc/hosts file
# (if commented, be sure to set USER_HOST_LIST, below
#define(`AUTO_HOST_MENU')

# XRSH_OR_XON should be either `xon' or `xrsh' whichever you'd prefer for starting x apps
# on a remote machine


# MOD_SOUND_PATH, MIDI_SOUND_PATH are paths to mod files, midi files for the multimedia
# menu's use



# This is the URL displayed by the help choice which shows up on menus.


# Set this directory even if you don't want sound on by default-- it can be turned
# on dynamically.  This directory should include .wav or .au files, or whatever
# SOUND_COMMAND requires


# The program to use to play the files in the above directory
# You'll still need to add events in .fvwm2rc.modules to make sounds
# play


# Comment NO_VERIFY_QUIT to provide an extra extra degree of certain about leaving.
# Uncommented, it still is not possible to leave fvwm with a single keystroke (even chorded)


# Uncomment HANDLES if you want to see and be able to use the handles on window decorations
# This configuration uses chorded keystroke + mouse actions to make window moving and resizing
# less tedious


# Uncomment this if you want to use Win95-like buttons
# you don't need to uncomment this if you're using Fvwm95
# I'd suggest switching TITLE_STYLE to `LeftJustified Flat' if you use
# WIN95_BUTTONS, as they themselves are flat


# TITLE_STYLE should be a {justification,appearance} pair from fvwm's TitleStyle option
# justification is one of Centered, RightJustified, or LeftJustified
# appearance is one of Raised, Sunk, or Flat
# This does nothing in Fvwm95
# eg. `Centered Flat'


# Uncomment this to use pixmap buttons, instead of button style drawings.
# The advantage of pixmap buttons is that they always stay in the multi-tone dark grey.
# Comment PIXMAP_BUTTONS to make the buttons change colors with the title bar and decorations


# Comment below if you don't want to be able to start a tail -f 
# of a message log in an rxvt from SystemUtils menu
# Change it to the most appropriate general log on your system



# Change the BORDER_WIDTH to be the number of pixels in a window frame.
# Bigger looks more "solid", but takes up more precious screen real-estate


# You may change the below to a number, but it shouldn't vary more than a couple
# pixels from BORDER_WIDTH, above


# BASIC_FONT tells the font style to use generally-- first two parts of a font name, only


# FONT_STYLE tells the middle part of a font name.  try `medium-o' for a slanted font
# Be careful not to be too constraining with your choices


# BASIC_FONT_SIZE is a font size in points


# SMALL_SCREEN_BASIC_FONT_SIZE becomes the BASIC_FONT_SIZE if we're using a small screen


# SMALL_FONT is used for button labels, etc.


# MEDIUM_FONT is used for some forms-- should be >= SMALL_FONT, <= BASIC_FONT*BASIC_FONT_SIZE
# (* on above line is wildcard, not multiplication)


# ICON_FONT is the font used to label icons


# Uncomment below to use MOTIF_LIKE menu style


# CLICK_MS is the time in ms for clicks to succeed one another to be considered a double
# click


# COLOR_MAP_FOCUS is either FollwsMouse or FollowsFocus


# The level of niceness to use for commands that will be nice-d


# Set START_MENU_PIXMAP to a small (~60x~25 or so) pixmap to show at the top of
# the FvwmTaskBar's start menu-- only matters if you're using Fvwm95's task bar


# Uncomment below if you'd prefer keybindings for cursor movement that are in
# a cross, instead of a VI-style layout (I J K M, instead of vi-like H J K L)
#define(`NOT_VI_KEYS')

# Uncomment below if you have a sun keyboard
#define(`SunKeys')

# XTERM_ICON is a full size (~32x~32) icon to use for xterm-- you may want to set
# this to something more appropriate for your platform; e.g xterm-rhs, or xterm-sun
# don't include the .xpm in the below line


# PRINT_FUNCTION gives a shell command to print the window id $w
# xvwd is a script that does: "xwd $* > /tmp/xvwd.$$;xv /tmp/xvwd.$$;rm /tmp/xvwd.$$"
# This doesn't actually print it, but starts xv (version >=3.1) with it in its window
# You may want to use xpr if you have it and have it configured


# The font for "big" button bars (w/ fullsize pixmap icons, not mini-pixmaps)


# Comment the below if you don't want to be able to get tearoff button bars
# containing mini-pixmaps


# Uncomment the below (and probably comment PROVIDE_TEAROFF_BUTTON_BAR, above) if you 
# prefer large pixmap button bar tear-offs
#define(`PROVIDE_TEAROFF_BIG_BUTTON_BAR')

# Uncomment below if you don't have xdm start an xconsole running.
# NEED_CONSOLE set will start an xterm with its "-c" option to capture console output
#define(`NEED_CONSOLE')

# PREFERRED_CALENDAR_BIN should be the executable name of your favoriate calendar program


# APPS_FOR_USE_PPOSITION is a list of apps that are to have the UsePPosition style
# eg. `(app1,app2)'


###########################################################################
#
# Multiple platform handling section
#
# Example of how to handle a customization for multiple platforms
#

#OSTYPE gets passed in to FvwmM4




# Note: Win95, windows95, etc. are all trademarks of Microsoft Corp.
#  Sun is a tm of Sun Microsystems.
# All other tms are tms of their respective companies


# To keep .fvwm2rc.defines clean, we define default values as necessary 
# through a separate file


#****************************************************************************#
#* Beware changing anything beyond here:                                    *#
#* M4 preprocessing can be tricky.  Read the info page, the man page, and   *#
#* look at examples if you have problems                                    *#
#****************************************************************************#


##############################################################################
#
# m4 utility macro constructs
#
# Some of these came from examples distributed with m4

# divert(-1)




#eg. forloop(i,1,8,`i ') -> 1 2 3 4 5 6 7 8 





#eg. foreach(x,`(first,second,third)',`Values is x ')










# A ProgramName is just the first word (delimited by whitespace) in the argument



# ForcedErrorForTracePurposes_$1')



# Macro AddAmpersand for auto-picking a menu shortcut key





#AmpersandFirstCharNotIn <title-to-insert-ampersand> <chars-to-skip>




# AddAmpersand (<string>,<menu>)


# ShortcutKey (<string>,<menu>)


###########################################################################
#
# m4 defines for FVWM options
#
# Be careful w/ these-- m4 is case-sensitive

# FvwmAlias macro will ease the trouble-- you can use all lower case, 
# all uppercase, or *proper* mixed capitalization
# eg. StickyOnTop, stickyontop, or STICKYONTOP all work
# but StickyonTop will *not* work













































# DefineButton(ButNum,BtnOrPixmap,ActionForMouse0AnyModifiers)


















# SCREEN_SIZE gets set to Huge, Large, Moderate, or Small (capitalization matters)
#       Pixels wide      >1024  >800   >640        otherwise
#   Generally for screen  1200  1024    800           640
#       dimensions        x800  x768   x600	    x480


###########################################################################
#
# Now set internal macros based on configured parameters
#

#check for rxvt-- we'll later use it as a lightweight xterm
#rxvt not found






# This makes the assumption that our binary name is the basename of the directory
# in which the modules are stored


# Check if Fvwm95 is sourcing this file







 




#color-xterm can be color_xterm, color-xterm or non-existent (use xterm)
#color_xterm not found

#color-xterm not found

# if no color xterm, just use xterm







#StartProgramIn{ColorXterm,Xterm,Rxvt}(<prg-name-and-options>,<title>,
#                    <x-class-for-resources>









#divert

#Thing to watch: FVWM uses $0 for the first parameter,
# m4 uses $1 for the first parameter. ($0 is the macro name)

#XTermOtherHost <Host> <Title>
#Starts an xterm running a telnet/rlogin to another host (the xterm runs locally)
AddToFunc XTermOtherHost
+ "I" exec xterm -name remotexterm -T $0 -n $0 -e rlogin $1

##############################################################################
#
# Set our all-important paths.
# Note that your "executables" path (the one your shell uses to search for
# programs it tries to exec) is set *before* fvwm starts.  Usually it is
# set by .xinitrc or .xsession, which hopefully sources some environment
# settings files like /etc/env, /etc/profile, ~/.env, ~/.profile, etc.
#
ModulePath FVWMDIR
PixmapPath /usr/lib/TheNextLevel/pixmaps/:/usr/local/lib/icons/:/usr/local/lib/icons/mini/:/usr/local/lib/buttons/:/usr/local/lib/icons/3d/:/usr/include/X11/pixmaps/
IconPath   :/usr/include/X11/bitmaps/


###########################################################################
# Look at /tmp/fvwm* output to see what fvwm is defining things
# to be on your platform
#

# Need to muddle with comment characters so these lines don't get ignored by m4,
# but this needs to get passed through fvwm w/o wreaking havoc

#FVWM-M4-Defines
#SERVERHOST=SERVERHOST
#CLIENTHOST=CLIENTHOST
#HOSTNAME=HOSTNAME
#OSTYPE=OSTYPE
#USER=USER
#VERSION=VERSION
#REVISION=REVISION
#VENDOR=VENDOR
#RELEASE=RELEASE
#WIDTH=1024
#HEIGHT=HEIGHT
#X_RESOLUTION=X_RESOLUTION
#Y_RESOLUTION=Y_RESOLUTION
#PLANES=PLANES
#CLASS=CLASS
#COLOR=COLOR
#FVWM_VERSION=FVWM_VERSION
#OPTIONS=OPTIONS
#FVWMDIR=FVWMDIR
#
#XRELEASE=RELEASE


###########################################################################
#
# Fonts - one for window titles, another for icons, and another for the menus
#

WindowFont	*helvetica*bold-r*12*
IconFont	fixed
MenuStyle	black grey76 grey35 *helvetica*medium-r*12* mwm

###########################################################################
#
# Set misc. interaction preferences
#

ClickTime 150
TitleStyle LeftJustified Flat
ColorMapFocus FollowsMouse

DeskTopSize 3x3
OpaqueMoveSize 30
EdgeResistance 400 40
EdgeScroll 100 100

###########################################################################
#
# Set up the basic colors
#

# Set the default window colors. The syntax is:
#  DefaultColors winforecolor winbackcolor titleforecolor titlebackcolor
# where:
#  winforecolor    is used for the menu text
#  winbackcolor    is the background (border) color of all windows,
#                  including the menu windows 
#  titleforecolor  is the color of the title text of non selected windows
#  titlebackcolor  is the background color used for title bars of 
#                  non selected windows
#

# Fvwm95 and Fvwm2 handle colors pretty differently....


Style "*" ForeColor black, BackColor grey51


#
# Text and background color for the title bar of the active (selected) window
#


###########################################################################
#
# Stuff to do at start-up
#
# User initialization is done in .fvwm2rc.init, included at bottom.

##########

AddToFunc "InitFunction"
+ "I" SetupFunction
+ "I" StartupFunction
+ "I" EndSetupFunction

AddToFunc "RestartFunction"
+ "I" SetupFunction
+ "I" EndSetupFunction

###########################################################################
#
# Set the global style
#

#SloppyFocus not needed with Unclutter, and it can be dangerous 
#--you might destroy a window that still has the focus when pointing
#--at a window that doesn't take keyboard focus
#Style "*" SloppyFocus

Style "*" MWMFunctions, MWMDecor

Style "*" HintOverride, SmartPlacement, RandomPlacement
# DecoratedTransient-s is helpful to me
#Style "*" NakedTransient
Style "*" BorderWidth 5

#Gives "iconify-to-current-screen" behaviour
Style "*" StickyIcon

Style "*" Handles, HandleWidth 5

Style "*" NoIcon

# NoPPosition instructs fvwm to ignore the PPosition field in window
Style "*" NoPPosition

# But for some apps, you might want it...


###########################################################################
# Set the decoration styles and window options for specific apps
# Order does matter... if compatible styles are set for a single window
# in multiple Style commands, then the styles are ORed together. If
# conflicting styles are set, the last one specified is used.

# These commands should command before any menus or functions are defined,
# and before the internal pager is started.

#
# Default border and handle widths
#

#Remember, options are additive-- they get "OR"-ed together
# Also note that some of these are "FvwmAlias"-es... see m4 macro
# FvwmAlias and the following lines, above.
Style "Fvwm*"		NoTitle,NoHandles,BorderWidth 1
Style "*clock"		StaysOnTop,Sticky, CirculateSkip, NoTitle,NoHandles,BorderWidth 1
Style "xosview"		StaysOnTop,Sticky, CirculateSkip, NoTitle,NoHandles,BorderWidth 1
Style "xbiff"		StaysOnTop,Sticky, CirculateSkip, NoTitle,NoHandles,BorderWidth 1
Style "xeyes"		NoTitle,NoHandles,BorderWidth 1, CirculateSkip
Style "xload"		StaysOnTop,Sticky, NoTitle,NoHandles,BorderWidth 1, CirculateSkip
Style "*ppp"		StaysOnTop,Sticky, NoTitle,NoHandles,BorderWidth 1, CirculateSkip
Style "Msgs"		CirculateSkip
Style "*onsole"		CirculateSkip
Style "xman"		NoTitle,NoHandles,BorderWidth 1, CirculateSkip

#
# Some mini-icons for the title bar, menus
#

# User might not want mini-icons






#HAVE_TITLE_ICONS gets set for Fvwm95
# Hopefully fvwm2 will integrate title icons sometime soon










# DefineProgram <menu-app-type> <program-label> <miniicon> <bigicon> <command-name>
# (only gets added if <command-name> is an executable program on the
#  current system)
# Be cautious of using quotes in command-name, or elsewhere, as single
# quote can mess up m4, and double quotes can mess up the button bar
# as they interact with the quotes around FvwmButton's Action keyword parameter
# Consider, instead, backslash-escaping all spaces in an argument.
# (See StartNonInteractiveProgramInRxvt definition, below.





# Since we don't want the button's labels to have &'s, we need a macro
# to remove them.




# MenuAndButtonEntry <menu>  <label> <miniicon> <bigicon> <command-name>
#                       1        2         3       4          5
# Be cautious of using quotes in command-name, or elsewhere, as single
# quote can mess up m4, and double quotes can mess up the button bar
# as they interact with the quotes around FvwmButton's Action keyword parameter


# MenuSeparator <menu>






#Note: Use SetCurrentMenu(<menu name>) to make the *LM commands use <menu name>
# as the menu to add to

###########################################################################
#
# Include all the other support files
#

# Note: .fvwm2rc.buttons, .fvwm2rc.init and .fvwm2rc.defines
# are included in the main body of this file, above.

# Title button decorations and bindings

# $Id: .fvwm2rc.buttons,v 1.2 1996/06/12 08:06:45 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.m4

###########################################################################
#
# Button Decorations
#


# Leftmost
ButtonStyle 1 win95-sysmenu-full.xpm
Mouse 0 1 A Function Close-or-Popup

# Rightmost three, right to left

ButtonStyle 2 win95-maximize-full.xpm
Mouse 0 2 A Maximize 0 95

ButtonStyle 4 win95-minimize-full.xpm
Mouse 0 4 A Iconify




# Various complex functions

# $Id: .fvwm2rc.functions,v 1.7 1996/06/04 06:15:43 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.m4

###########################################################################
#
# Now define some handy complex functions
#
# (I)mmediate, (M)otion, (C)lick, (D)oubleclick


# This one moves and then raises the window if you drag the mouse,
# only raises the window if you click, or does a full maximize if 
# you double click

AddToFunc "Move-or-Raise-or-Maximize" 
+ "M" Move
+ "M" Raise
+ "C" Raise
+ "D" Maximize

AddToFunc "Move-or-Raise" 
+ "M" Move
+ "M" Raise
+ "C" Raise

AddToFunc "Move-and-Raise"
+ "I" Move
+ "I" Raise

#
# This one moves and then lowers the window if you drag the mouse,
# only lowers the window if you click, or does a RaiseLower if you double 
# click
#
AddToFunc "Move-or-Lower" 
+ "M" Move
+ "M" Lower
+ "C" Lower
+ "D" RaiseLower

#
# This one moves or (de)iconifies:
#
AddToFunc "Move-or-Iconify" 
+ "M" Move
+ "D" Iconify

#
# This one resizes and then raises the window if you drag the mouse,
# only raises the window if you click,  or does a RaiseLower if you double 
# click
#
AddToFunc "Resize-or-Raise" 
+ "M" Resize
+ "M" Raise
+ "C" Raise
+ "D" RaiseLower

AddToFunc "Iconify-Move-Maximize" 
+ "C" Iconify
+ "D" Iconify
+ "D" Maximize
+ "M" Move

AddToFunc "Iconify-Maximize" 
+ "C" Iconify
+ "C" Maximize

AddToFunc "Delete-or-Popup" 
+ "M" PopUp Window-Ops-Basic
+ "C" PopUp Window-Ops-Basic
+ "D" Delete

AddToFunc "Close-or-Popup" 
+ "M" PopUp Window-Ops-Basic
+ "C" PopUp Window-Ops-Basic
+ "D" Close

AddToFunc Raise-and-Stick "I" Raise
+ "I" Stick

AddToFunc MailFunction
+ "I" Next [$0] Iconify -1
+ "I" Next [$0] focus
+ "I" None [$0] Exec $0 $1

AddToFunc StartXTerm "I" Exec xterm
+ "I" Wait xterm
+ "I" Next [xterm] Focus 

AddToFunc PrintFunction
+ "I" Raise
+ "I" Exec xvwd -id $w



# Various mouse bindings

# $Id: .fvwm2rc.mouse,v 1.3 1996/06/04 07:26:14 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.m4

###########################################################################
#
# Mouse Bindings
#

# Note, bindings for buttons are better located in 
# .fvwm2rc.m4 proper, using DefineButton macro

#
# Contexts mean:
#     R = Root Window                 rrrrrrrrrrrrrrrrrrrrrr
#     W = Application Window          rIrrrrFSSSSSSSSSFrrrrr
#     F = Frame Corners               rrrrrrS13TTTT642Srrrrr
#     S = Frame Sides                 rIrrrrSWWWWWWWWWSrrrrr
#     T = Title Bar                   rrrrrrSWWWWWWWWWSrrrrr
#     I = Icon                        rIrrrrFSSSSSSSSSFrrrrr
#                                     rrrrrrrrrrrrrrrrrrrrrr
# Numbers are buttons 1 3 5      6 4 2
#
# Modifiers: (A)ny (C)ontrol (S)hift (M)eta

# Root window clicks
#     Button	Context Modifi 	Function
Mouse 1		R   	A       Menu "RootStart" Nop
Mouse 2		R	A	WindowList
Mouse 3		R	A	Menu "Applications"" Nop

#
# Now the rest of the frame
#
# Button 1 in Title move, raise, or maximize
# Button 1 in Frame resizes
# Button 3 anywhere raise/lower
Mouse 1		T	A	Function "Move-or-Raise-or-Maximize"
Mouse 1		FS	A	Resize
Mouse 2		FST	A	Menu "Window-Ops" Nop
Mouse 3		TSIF	A	RaiseLower

Mouse 1		A	CSM	RaiseLower
Mouse 2		A	CSM	Function "Move-or-Raise"
Mouse 3		A	CSM	Function "Resize-or-Raise"

# Button 1 in an icons gives move for a drag, de-iconify for a double-click,
# nothing for a single click
# Button 2 in an icon gives window ops
# Button 3 in an icon, w/ any modifiers, gives de-iconify
Mouse 1		I	A	Function "Iconify-move-maximize"
Mouse 2		I	A 	Menu "Window-Ops" Nop
Mouse 3		I	A	Function "Iconify-maximize"


# Various key bindings

# $Id: .fvwm2rc.keys,v 1.14 1996/06/13 21:24:28 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.m4

###########################################################################
#
# Now some keyboard shortcuts.
#
# Contexts mean:
#     R = Root Window                 rrrrrrrrrrrrrrrrrrrrrr
#     W = Application Window          rIrrrrFSSSSSSSSSFrrrrr
#     F = Frame Corners               rrrrrrS13TTTT642Srrrrr
#     S = Frame Sides                 rIrrrrSWWWWWWWWWSrrrrr
#     T = Title Bar                   rrrrrrSWWWWWWWWWSrrrrr
#     I = Icon                        rIrrrrFSSSSSSSSSFrrrrr
#                                     rrrrrrrrrrrrrrrrrrrrrr
# Numbers are buttons, odd on left, even on right:  1 3 5      6 4 2
#
# Modifiers: (A)ny (C)ontrol (S)hift (M)eta

# press arrow in the root window, and move the pointer to other virtual wins
Key Left	R	N	CursorMove -5 +0
Key Right	R	N	CursorMove +5 +0
Key Up		R	N	CursorMove +0 -5
Key Down	R	N	CursorMove +0 +5

# Arrow Keys
# press arrow + control SHIFT meta anywhere, and scroll by 1 page
Key Left	A	CSM	Scroll -100 0
Key Right	A	CSM	Scroll +100 +0
Key Up		A	CSM	Scroll +0   -100
Key Down	A	CSM	Scroll +0   +100

# Keypad Arrow keys, scroll by 10% of page
Key KP_4	A	CSM	Scroll -10 0
Key KP_6	A	CSM	Scroll +10 0
Key KP_8	A	CSM	Scroll 0 -10
Key KP_2	A	CSM	Scroll 0 +10

# Keyboard accelerators
Key F1		A	CS	Popup "Window-Ops"
Key F2		A	CS	WindowList
Key F3		A	CS	Popup "Hosts"
Key F4		A	CS	Popup "Applications"
Key F5		A	CS	Popup "Utilities"
Key F6		A	CS	Popup "Multimedia"
Key F7		A	CS	Move
Key F8		A	CS	Resize
Key Tab		A	M	Next [CurrentScreen *] Focus
Key Tab		A	SM	Prev [CurrentScreen *] Focus
Key Escape	A	M	WindowList
Key Up		A	CS	Maximize 0 95
Key Right	A	CS	Maximize 100 0
Key Return	A	CM	RaiseLower
Key Return	A	CS	WindowList 1 -1
Key Down	A	CS	Iconify
Key Home	A	CSM	Desk 0 0
Key End		A	CSM	Desk 0 1
Key BackSpace	A	CSM	Delete
Key KP_Decimal  A	CSM	Destroy
Key Escape	A	CSM	FvwmForm LogoutVerify
Key z		A	CSM	Popup "RootStart"
Key x		A	CSM	Function StartXterm
Key s		WT	CSM	Function Raise-and-Stick
Key a		A	CSM	Popup "Applications"
Key p		A	CSM	Popup "Preferences"
Key w		A	CSM	Popup "Window-Ops"
Key g		A	CSM	Popup "Games"
Key r 		A	CSM	Refresh

# Do mouse movements with keys, so you never have to touch the mouse!
# Great if you don't have one, or are just switching between neighboring
# windows, or don't have far to go
#eg. KeyMouseMoves F9 F10 F11 F12 SM 1
#                  L  D   U   R   Mods Amount
#                  0   1   2   3   4    5
AddToFunc "KeyMouseMoves" 
+ "I" Key $0 A $4 CursorMove  -$5   0
+ "I" Key $1 A $4 CursorMove    0  $5
+ "I" Key $2 A $4 CursorMove    0 -$5
+ "I" Key $3 A $4 CursorMove   $5   0

#Let the FKeys do this, with vi-like bindings
# You may want to comment this out if you prefer
# emacs or other fvwm bindings for Ctrl-Shift &/or Shift-Meta + F9-F12
Function KeyMouseMoves F9 F10 F11 F12 CS 1
Function KeyMouseMoves F9 F10 F11 F12 SM 7

# May want to extend this for left-handed users

# These KeyMouseMoves are closer to where your hands'll be

#but VI people get two degrees of motion, if they
#dont mind moving off the home row temporarily
KeyMouseMoves h j k l CSM 10
KeyMouseMoves y u i o CSM 1


# You may want to use xev to check these keycodes and use xmodmap
# to make sure the keysyms are what are below-- I don't
# have a win95 compatible keyboard to try this on

Key Tab		A	CM	Next [CurrentScreen *xterm] focus
Key Tab		A	CSM	Prev [CurrentScreen *xterm] focus



# Creation of the menus

# $Id: .fvwm2rc.menus,v 1.18 1996/06/13 22:46:04 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.m4

###########################################################################
#
# Now create the menus
#




# This is for the Start menu of the FvwmTaskBar



AddToMenu "StartMenu" "Red Hat Linux %mini-redhat.xpm%"   Title
+ "&New shell %mini-sh1.xpm%"        	Exec  xterm
+ "&Applications %mini-x2.xpm%"		Popup Applications
+ "&Utilities %mini-hammer.xpm%"		Popup Utilities
+ "&Multimedia %mini-audiovol.xpm%"		Popup Multimedia
+ "&Games %mini-happy.xpm%"			Popup Games
+ "" Nop
+ "H&osts %mini-windows.xpm%"		Popup Hosts
+ "&System Utilities %mini-connect.xpm%"	Popup SystemUtilities
+ "&Window Operations %mini-windows.xpm%"	Popup Window-Ops
+ "&Preferences %mini-prefs.xpm%" 		Popup "Preferences"
+ "" Nop
+ "S&creensaver %mini-display.xpm%"		Popup Screensaver
+ "&Lock Screen %mini-lock.xpm%"		Popup Screenlock
+ "" Nop
+ "A&bout Fvwm %mini-exclam.xpm%"		FvwmForm About

+ "E&xit Fvwm %mini-stop.xpm%"		Popup Quit-Verify



AddToMenu "RootStart" "Start %mini-redhat.xpm%" Title
+ "&New shell %mini-sh1.xpm%"        	Exec  xterm
+ "&Applications %mini-x2.xpm%"		Popup Applications
+ "&Utilities %mini-hammer.xpm%"		Popup Utilities
+ "&Multimedia %mini-audiovol.xpm%"		Popup Multimedia
+ "&Games %mini-happy.xpm%"			Popup Games
+ "" Nop
+ "H&osts %mini-windows.xpm%"		Popup Hosts
+ "&System Utilities %mini-connect.xpm%"	Popup SystemUtilities
+ "&Window Operations %mini-windows.xpm%"	Popup Window-Ops
+ "&Preferences %mini-prefs.xpm%" 		Popup "Preferences"
+ "" Nop
+ "S&creensaver %mini-display.xpm%"		Popup Screensaver
+ "&Lock Screen %mini-lock.xpm%"		Popup Screenlock
+ "" Nop
+ "A&bout Fvwm %mini-exclam.xpm%"		FvwmForm About

+ "E&xit Fvwm %mini-stop.xpm%"		Popup Quit-Verify


#
AddToMenu "Quit-Verify" "Really Quit Fvwm?" Title
+ "&Restart %mini-turn.xpm%"		Restart 
+ "" 					Nop
+ "&No, Don't Quit %mini-cross.xpm%" 	Nop
+ "&Yes, Really Quit %mini-exclam.xpm%"	Quit


AddToMenu ScrollPreferences "Change Scroll Behavior" Title
+ "&On"    		EdgeScroll 100 100
+ "O&ff"   		EdgeScroll 0 0
+ "&Horizontal Only"    EdgeScroll 100 0
+ "&Vertical Only"      EdgeScroll 0 100
+ "&Partial"        	EdgeScroll 50 50

AddToMenu Colours  "Color Settings" Title
+ "&Background"      Exec xsetroot -solid $(tcolor)
+ "Color &Names"     Exec xcolor
+ "Color &Map"       Exec xshowcmap
+ "&Reset Color Map" Exec xstdcmap -default



AddToFunc SetRootCursor "I" Exec xsetroot -cursor_name $0


AddToMenu RootCursor "Set Root Cursor" Title
+ "&Reset to X_cursor" SetRootCursor X_cursor
+ "&Miscellany" Popup MiscellanyCursors
+ "&Arrows" Popup ArrowCursors
+ "Cor&ners" Popup CornersCursors
+ "&Crosses" Popup CrossesCursors
+ "&Objects" Popup ObjectsCursors

#AddCursorToMenu($1=Menu,$2=Cursor)



AddToMenu ArrowCursors "arrow" SetRootCursor arrow
AddToMenu ArrowCursors "based_arrow_down" SetRootCursor based_arrow_down
AddToMenu ArrowCursors "based_arrow_up" SetRootCursor based_arrow_up
AddToMenu ArrowCursors "double_arrow" SetRootCursor double_arrow
AddToMenu ArrowCursors "question_arrow" SetRootCursor question_arrow
AddToMenu ArrowCursors "sb_down_arrow" SetRootCursor sb_down_arrow
AddToMenu ArrowCursors "sb_h_double_arrow" SetRootCursor sb_h_double_arrow
AddToMenu ArrowCursors "sb_left_arrow" SetRootCursor sb_left_arrow
AddToMenu ArrowCursors "sb_right_arrow" SetRootCursor sb_right_arrow
AddToMenu ArrowCursors "sb_up_arrow" SetRootCursor sb_up_arrow
AddToMenu ArrowCursors "sb_v_double_arrow" SetRootCursor sb_v_double_arrow
AddToMenu ArrowCursors "top_left_arrow" SetRootCursor top_left_arrow


AddToMenu CornersCursors "top_left_corner" SetRootCursor top_left_corner
AddToMenu CornersCursors "top_side" SetRootCursor top_side
AddToMenu CornersCursors "top_right_corner" SetRootCursor top_right_corner
AddToMenu CornersCursors "left_side" SetRootCursor left_side
AddToMenu CornersCursors "right_side" SetRootCursor right_side
AddToMenu CornersCursors "bottom_left_corner" SetRootCursor bottom_left_corner
AddToMenu CornersCursors "bottom_side" SetRootCursor bottom_side
AddToMenu CornersCursors "bottom_right_corner" SetRootCursor bottom_right_corner


AddToMenu CrossesCursors "X_cursor" SetRootCursor X_cursor
AddToMenu CrossesCursors "cross" SetRootCursor cross
AddToMenu CrossesCursors "cross_reverse" SetRootCursor cross_reverse
AddToMenu CrossesCursors "crosshair" SetRootCursor crosshair
AddToMenu CrossesCursors "diamond_cross" SetRootCursor diamond_cross
AddToMenu CrossesCursors "iron_cross" SetRootCursor iron_cross
AddToMenu CrossesCursors "tcross" SetRootCursor tcross


AddToMenu ObjectsCursors "boat" SetRootCursor boat
AddToMenu ObjectsCursors "bogosity" SetRootCursor bogosity
AddToMenu ObjectsCursors "box_spiral" SetRootCursor box_spiral
AddToMenu ObjectsCursors "circle" SetRootCursor circle
AddToMenu ObjectsCursors "clock" SetRootCursor clock
AddToMenu ObjectsCursors "coffee_mug" SetRootCursor coffee_mug
AddToMenu ObjectsCursors "dot" SetRootCursor dot
AddToMenu ObjectsCursors "dotbox" SetRootCursor dotbox
AddToMenu ObjectsCursors "draft_large" SetRootCursor draft_large
AddToMenu ObjectsCursors "draft_small" SetRootCursor draft_small
AddToMenu ObjectsCursors "draped_box" SetRootCursor draped_box
AddToMenu ObjectsCursors "exchange" SetRootCursor exchange
AddToMenu ObjectsCursors "fleur" SetRootCursor fleur
AddToMenu ObjectsCursors "gobbler" SetRootCursor gobbler
AddToMenu ObjectsCursors "gumby" SetRootCursor gumby
AddToMenu ObjectsCursors "hand1" SetRootCursor hand1
AddToMenu ObjectsCursors "hand2" SetRootCursor hand2
AddToMenu ObjectsCursors "heart" SetRootCursor heart
AddToMenu ObjectsCursors "icon" SetRootCursor icon
AddToMenu ObjectsCursors "man" SetRootCursor man
AddToMenu ObjectsCursors "mouse" SetRootCursor mouse
AddToMenu ObjectsCursors "num_glyphs" SetRootCursor num_glyphs
AddToMenu ObjectsCursors "pencil" SetRootCursor pencil
AddToMenu ObjectsCursors "pirate" SetRootCursor pirate
AddToMenu ObjectsCursors "plus" SetRootCursor plus
AddToMenu ObjectsCursors "rtl_logo" SetRootCursor rtl_logo
AddToMenu ObjectsCursors "sailboat" SetRootCursor sailboat
AddToMenu ObjectsCursors "shuttle" SetRootCursor shuttle
AddToMenu ObjectsCursors "spider" SetRootCursor spider
AddToMenu ObjectsCursors "spraycan" SetRootCursor spraycan
AddToMenu ObjectsCursors "star" SetRootCursor star
AddToMenu ObjectsCursors "target" SetRootCursor target
AddToMenu ObjectsCursors "trek" SetRootCursor trek
AddToMenu ObjectsCursors "umbrella" SetRootCursor umbrella
AddToMenu ObjectsCursors "watch" SetRootCursor watch


AddToMenu TeesButtonsAnglesCursors "bottom_tee" SetRootCursor bottom_tee
AddToMenu TeesButtonsAnglesCursors "left_tee" SetRootCursor left_tee
AddToMenu TeesButtonsAnglesCursors "leftbutton" SetRootCursor leftbutton
AddToMenu TeesButtonsAnglesCursors "ll_angle" SetRootCursor ll_angle
AddToMenu TeesButtonsAnglesCursors "lr_angle" SetRootCursor lr_angle
AddToMenu TeesButtonsAnglesCursors "ul_angle" SetRootCursor ul_angle
AddToMenu TeesButtonsAnglesCursors "ur_angle" SetRootCursor ur_angle
AddToMenu TeesButtonsAnglesCursors "middlebutton" SetRootCursor middlebutton
AddToMenu TeesButtonsAnglesCursors "right_tee" SetRootCursor right_tee
AddToMenu TeesButtonsAnglesCursors "rightbutton" SetRootCursor rightbutton
AddToMenu TeesButtonsAnglesCursors "top_tee" SetRootCursor top_tee


AddToMenu MiscellanyCursors "center_ptr" SetRootCursor center_ptr
AddToMenu MiscellanyCursors "left_ptr" SetRootCursor left_ptr
AddToMenu MiscellanyCursors "right_ptr" SetRootCursor right_ptr
AddToMenu MiscellanyCursors "sizing" SetRootCursor sizing
AddToMenu MiscellanyCursors "xterm" SetRootCursor xterm

#foreach(`x',
#`(X_cursor,arrow,based_arrow_down,based_arrow_up,boat,bogosity,
#bottom_left_corner,bottom_right_corner,bottom_side,bottom_tee,
#box_spiral,center_ptr,circle,clock,coffee_mug,cross,cross_reverse,crosshair,
#diamond_cross,dot,dotbox,double_arrow,draft_large,draft_small,draped_box,
#exchange,fleur,gobbler,gumby,hand1,hand2,heart,icon,iron_cross,left_ptr,
#left_side,left_tee,leftbutton,ll_angle,lr_angle,man,middlebutton,mouse,num_glyphs,
#pencil,pirate,plus,question_arrow,right_ptr,right_side,right_tee,rightbutton,
#rtl_logo,sailboat,sb_down_arrow,sb_h_double_arrow,sb_left_arrow,sb_right_arrow,sb_up_arrow,sb_v_double_arrow,shuttle,sizing,spider,spraycan,star,target,tcross,top_left_arrow,top_left_corner,top_right_corner,top_side,top_tee,trek,ul_angle,umbrella,ur_angl

# e,watch,xterm)',
#`AddCursorToMenu(AllCursorsMenu,x)')

AddToFunc Speed "I" Exec xset m $0

AddToMenu MouseSettings "Mouse Settings" Title
+ "&1 Ultra Fastest" 	Speed "20 5"
+ "&2 Next Fastest"  	Speed "15 6"
+ "&3 Faster"	  	Speed "10 7"
+ "&4 Fast"	  	Speed "7 8"
+ "&5 Normal"	  	Speed "5 10"
+ "&6 Slower"	  	Speed "default"
+ "&N No acceleration"  Speed "0 10000"
+ "" Nop
+ "&Right Handed (1 2 3)" Exec xmodmap -e "pointer = 1 2 3"
+ "&Left Handed (3 2 1)" Exec xmodmap -e "pointer = 3 2 1"

AddToFunc AutoRaiseSpeed 
+ "I" KillModule FvwmAuto
+ "I" FvwmAuto $0



AddToMenu AutoRaiseMenu "AutoRaise" Title
+ "O&ff" KillModule FvwmAuto
+ "" Nop

+ "&0 ms" Function AutoRaiseSpeed 0
+ "&200 ms" Function AutoRaiseSpeed 200
+ "&400 ms" Function AutoRaiseSpeed 400
+ "&500 ms" Function AutoRaiseSpeed 500
+ "&1000 ms" Function AutoRaiseSpeed 1000
+ "&3000 ms" Function AutoRaiseSpeed 3000


AddToMenu AudioSettings "Audio Settings" Title
+ "&On" Module FvwmAudio
+ "O&ff" KillModule FvwmAudio
#+ "Event mapping" FvwmForm AudioEvents

AddToMenu XResources "X Resources" Title
+ "&Load .Xdefaults" Exec xrdb -load .Xdefaults
+ "&Merge .Xdefaults" Exec xrdb -merge .Xdefaults
+ "L&oad .Xresources" Exec xrdb -load .Xresources
+ "M&erge .Xresources" Exec xrdb -merge .Xresources
+ "" Nop
+ "&Display current settings" Exec xterm -ut -T XResources\ --\ Use\ Meta-PgUp/Dn\ to\ Scroll -n XResources  -e sh -c "xrdb -query && read waitforreturn"






*PreferencesButtonsRows 1
*PreferencesButtonsFore black
*PreferencesButtonsBack grey51
AddToMenu Preferences "Preferences Button Bar%mini-modules.xpm%" Module FvwmButtons PreferencesButtons


#At least give it a title

AddToMenu Preferences "" Nop




AddToMenu Preferences "&FvwmConfig%mini-hammer.xpm%" Module FvwmConfig

*PreferencesButtons(Icon mini-hammer.xpm, Action "Module FvwmConfig")



AddToMenu Preferences "&Root Cursor%mini-cross.xpm%" Popup RootCursor

*PreferencesButtons(Icon mini-cross.xpm, Action "Popup RootCursor")



AddToMenu Preferences "&Mouse%mini-mouse.xpm%" Popup MouseSettings

*PreferencesButtons(Icon mini-mouse.xpm, Action "Popup MouseSettings")



AddToMenu Preferences "&Colours%mini-colors.xpm%" Popup Colours

*PreferencesButtons(Icon mini-colors.xpm, Action "Popup Colours")



AddToMenu Preferences "A&udio%mini-audiovol.xpm%" Popup AudioSettings

*PreferencesButtons(Icon mini-audiovol.xpm, Action "Popup AudioSettings")



AddToMenu Preferences "&AutoRaise%mini-raise.xpm%" Popup AutoRaiseMenu

*PreferencesButtons(Icon mini-raise.xpm, Action "Popup AutoRaiseMenu")



AddToMenu Preferences "&Scroll Setup%mini-scroll-arrows.xpm%" Popup ScrollPreferences

*PreferencesButtons(Icon mini-scroll-arrows.xpm, Action "Popup ScrollPreferences")



AddToMenu Preferences "&X Resources%mini-x2.xpm%" Popup XResources

*PreferencesButtons(Icon mini-x2.xpm, Action "Popup XResources")


#xkeycaps not found

AddToMenu Preferences "Save &Desktop to new.xinitrc%mini-floppy.xpm%" Module FvwmSave

*PreferencesButtons(Icon mini-floppy.xpm, Action "Module FvwmSave")





*SystemUtilitiesButtonsRows 1
*SystemUtilitiesButtonsFore black
*SystemUtilitiesButtonsBack grey51
AddToMenu SystemUtilities "SystemUtilities Button Bar%mini-modules.xpm%" Module FvwmButtons SystemUtilitiesButtons


#At least give it a title

AddToMenu SystemUtilities "" Nop



#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xterm -T Root_Window -n Root_Window  -e zsh -c su 
#'))dnl
Style "xterm" TitleIcon mini-hat.xpm
AddToMenu SystemUtilities "&Root shell%mini-hat.xpm%" Exec xterm -T Root_Window -n Root_Window  -e zsh -c su 

*SystemUtilitiesButtons(Icon mini-hat.xpm, Action 'Exec "xterm" xterm -T Root_Window -n Root_Window  -e zsh -c su ')






AddToMenu SystemUtilities "&Msgs%mini-doc.xpm%" Exec nice -16 xterm -ut -geometry 80x8+520-2 -T Msgs -fn 5x8 -e nice -16 tail -8 -f /var/log/messages

*SystemUtilitiesButtons(Icon mini-doc.xpm, Action "Exec nice -16 xterm -ut -geometry 80x8+520-2 -T Msgs -fn 5x8 -e nice -16 tail -8 -f /var/log/messages")




AddToMenu SystemUtilities "T&op%mini-run.xpm%" Exec xterm -ut -name top -T Top -n Top -e top

*SystemUtilitiesButtons(Icon mini-run.xpm, Action "Exec xterm -ut -name top -T Top -n Top -e top")



AddToMenu SystemUtilities "&Identify Window%mini-question.xpm%" Module FvwmIdent

*SystemUtilitiesButtons(Icon mini-question.xpm, Action "Module FvwmIdent")



#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xterm -ut -T WindowInfo\ --\ Use\ Meta-PgUp/Dn\ to\ Scroll -n WindowInfo  -e sh -c "xwininfo && read waitforreturn"
#'))dnl
Style "xterm" TitleIcon mini-windows.xpm
AddToMenu SystemUtilities "&Window Info%mini-windows.xpm%" Exec xterm -ut -T WindowInfo\ --\ Use\ Meta-PgUp/Dn\ to\ Scroll -n WindowInfo  -e sh -c "xwininfo && read waitforreturn"

*SystemUtilitiesButtons(Icon mini-windows.xpm, Action 'Exec "xterm" xterm -ut -T WindowInfo\ --\ Use\ Meta-PgUp/Dn\ to\ Scroll -n WindowInfo  -e sh -c "xwininfo && read waitforreturn"')





AddToMenu SystemUtilities "&Talk Module%mini-talk.xpm%" Module FvwmTalk

*SystemUtilitiesButtons(Icon mini-talk.xpm, Action "Module FvwmTalk")



AddToMenu SystemUtilities "&Pager Module%mini-pager.xpm%" Module FvwmPager 0 1

*SystemUtilitiesButtons(Icon mini-pager.xpm, Action "Module FvwmPager 0 1")



AddToMenu SystemUtilities "" Nop

AddToMenu SystemUtilities "Fvwm &Command%mini-talk.xpm%" FvwmForm TalkForm

*SystemUtilitiesButtons(Icon mini-talk.xpm, Action "FvwmForm TalkForm")



AddToMenu SystemUtilities "Reread .&Xdefaults%mini-exclam.xpm%" Exec xrdb -merge .Xdefaults

*SystemUtilitiesButtons(Icon mini-exclam.xpm, Action "Exec xrdb -merge .Xdefaults")



AddToMenu SystemUtilities "Restart &Fvwm2%mini-turn.xpm%" Restart fvwm2

*SystemUtilitiesButtons(Icon mini-turn.xpm, Action "Restart fvwm2")


AddToMenu SystemUtilities "" Nop

AddToMenu SystemUtilities "Re&fresh Screen%mini-ray.xpm%" Refresh

*SystemUtilitiesButtons(Icon mini-ray.xpm, Action "Refresh")



AddToMenu SystemUtilities "Re&capture All Windows%mini-recapture.xpm%" Recapture

*SystemUtilitiesButtons(Icon mini-recapture.xpm, Action "Recapture")







AddToMenu "Screensaver" "Screensaver" Title
AddToMenu "Screenlock" "Lock Screen" Title






#foreach(`y',`(bat,blot,bounce,clock,flame,forest,galaxy,geometry,grav,helix,hop,hyper,bob,kaleid,laser,life,life3d,mountain,maze,pyro,qix,rect,rock,rotor,sphere,spiral,spline,swarm,wator,world,worm,swirl,blank,random)',`AddXLockOption(y)')


  #Auto generate the list
  
  
  

AddToMenu "Screensaver" "&Ant %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode ant
AddToMenu "Screenlock" "&Ant %mini-lock.xpm%" Exec xlock -nice -16 -mode ant



AddToMenu "Screensaver" "&Bat %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode bat
AddToMenu "Screenlock" "&Bat %mini-lock.xpm%" Exec xlock -nice -16 -mode bat



AddToMenu "Screensaver" "B&lot %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode blot
AddToMenu "Screenlock" "B&lot %mini-lock.xpm%" Exec xlock -nice -16 -mode blot



AddToMenu "Screensaver" "B&ouboule %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode bouboule
AddToMenu "Screenlock" "B&ouboule %mini-lock.xpm%" Exec xlock -nice -16 -mode bouboule



AddToMenu "Screensaver" "Bo&unce %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode bounce
AddToMenu "Screenlock" "Bo&unce %mini-lock.xpm%" Exec xlock -nice -16 -mode bounce



AddToMenu "Screensaver" "B&raid %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode braid
AddToMenu "Screenlock" "B&raid %mini-lock.xpm%" Exec xlock -nice -16 -mode braid



AddToMenu "Screensaver" "Bu&g %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode bug
AddToMenu "Screenlock" "Bu&g %mini-lock.xpm%" Exec xlock -nice -16 -mode bug



AddToMenu "Screensaver" "&Clock %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode clock
AddToMenu "Screenlock" "&Clock %mini-lock.xpm%" Exec xlock -nice -16 -mode clock



AddToMenu "Screensaver" "&Daisy %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode daisy
AddToMenu "Screenlock" "&Daisy %mini-lock.xpm%" Exec xlock -nice -16 -mode daisy



AddToMenu "Screensaver" "Dcloc&k %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode dclock
AddToMenu "Screenlock" "Dcloc&k %mini-lock.xpm%" Exec xlock -nice -16 -mode dclock



AddToMenu "Screensaver" "D&emon %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode demon
AddToMenu "Screenlock" "D&emon %mini-lock.xpm%" Exec xlock -nice -16 -mode demon



AddToMenu "Screensaver" "E&yes %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode eyes
AddToMenu "Screenlock" "E&yes %mini-lock.xpm%" Exec xlock -nice -16 -mode eyes



AddToMenu "Screensaver" "&Flag %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode flag
AddToMenu "Screenlock" "&Flag %mini-lock.xpm%" Exec xlock -nice -16 -mode flag



AddToMenu "Screensaver" "Fla&me %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode flame
AddToMenu "Screenlock" "Fla&me %mini-lock.xpm%" Exec xlock -nice -16 -mode flame



AddToMenu "Screensaver" "Fore&st %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode forest
AddToMenu "Screenlock" "Fore&st %mini-lock.xpm%" Exec xlock -nice -16 -mode forest



AddToMenu "Screensaver" "Gala&xy %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode galaxy
AddToMenu "Screenlock" "Gala&xy %mini-lock.xpm%" Exec xlock -nice -16 -mode galaxy



AddToMenu "Screensaver" "Geome&try %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode geometry
AddToMenu "Screenlock" "Geome&try %mini-lock.xpm%" Exec xlock -nice -16 -mode geometry



AddToMenu "Screensaver" "Gra&v %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode grav
AddToMenu "Screenlock" "Gra&v %mini-lock.xpm%" Exec xlock -nice -16 -mode grav



AddToMenu "Screensaver" "&Helix %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode helix
AddToMenu "Screenlock" "&Helix %mini-lock.xpm%" Exec xlock -nice -16 -mode helix



AddToMenu "Screensaver" "Ho&p %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode hop
AddToMenu "Screenlock" "Ho&p %mini-lock.xpm%" Exec xlock -nice -16 -mode hop



AddToMenu "Screensaver" "Hyper %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode hyper
AddToMenu "Screenlock" "Hyper %mini-lock.xpm%" Exec xlock -nice -16 -mode hyper



AddToMenu "Screensaver" "&Image %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode image
AddToMenu "Screenlock" "&Image %mini-lock.xpm%" Exec xlock -nice -16 -mode image



AddToMenu "Screensaver" "Kaleid %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode kaleid
AddToMenu "Screenlock" "Kaleid %mini-lock.xpm%" Exec xlock -nice -16 -mode kaleid



AddToMenu "Screensaver" "Laser %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode laser
AddToMenu "Screenlock" "Laser %mini-lock.xpm%" Exec xlock -nice -16 -mode laser



AddToMenu "Screensaver" "Life %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode life
AddToMenu "Screenlock" "Life %mini-lock.xpm%" Exec xlock -nice -16 -mode life



AddToMenu "Screensaver" "Life&1d %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode life1d
AddToMenu "Screenlock" "Life&1d %mini-lock.xpm%" Exec xlock -nice -16 -mode life1d



AddToMenu "Screensaver" "Life&3d %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode life3d
AddToMenu "Screenlock" "Life&3d %mini-lock.xpm%" Exec xlock -nice -16 -mode life3d



AddToMenu "Screensaver" "Light&ning %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode lightning
AddToMenu "Screenlock" "Light&ning %mini-lock.xpm%" Exec xlock -nice -16 -mode lightning



AddToMenu "Screensaver" "Lissie %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode lissie
AddToMenu "Screenlock" "Lissie %mini-lock.xpm%" Exec xlock -nice -16 -mode lissie



AddToMenu "Screensaver" "Loop %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode loop
AddToMenu "Screenlock" "Loop %mini-lock.xpm%" Exec xlock -nice -16 -mode loop



AddToMenu "Screensaver" "Mar&quee %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode marquee
AddToMenu "Screenlock" "Mar&quee %mini-lock.xpm%" Exec xlock -nice -16 -mode marquee



AddToMenu "Screensaver" "Ma&ze %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode maze
AddToMenu "Screenlock" "Ma&ze %mini-lock.xpm%" Exec xlock -nice -16 -mode maze



AddToMenu "Screensaver" "Mountain %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode mountain
AddToMenu "Screenlock" "Mountain %mini-lock.xpm%" Exec xlock -nice -16 -mode mountain



AddToMenu "Screensaver" "Nose %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode nose
AddToMenu "Screenlock" "Nose %mini-lock.xpm%" Exec xlock -nice -16 -mode nose



AddToMenu "Screensaver" "Penrose %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode penrose
AddToMenu "Screenlock" "Penrose %mini-lock.xpm%" Exec xlock -nice -16 -mode penrose



AddToMenu "Screensaver" "Petal %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode petal
AddToMenu "Screenlock" "Petal %mini-lock.xpm%" Exec xlock -nice -16 -mode petal



AddToMenu "Screensaver" "Puzzle %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode puzzle
AddToMenu "Screenlock" "Puzzle %mini-lock.xpm%" Exec xlock -nice -16 -mode puzzle



AddToMenu "Screensaver" "Pyro %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode pyro
AddToMenu "Screenlock" "Pyro %mini-lock.xpm%" Exec xlock -nice -16 -mode pyro



AddToMenu "Screensaver" "Qix %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode qix
AddToMenu "Screenlock" "Qix %mini-lock.xpm%" Exec xlock -nice -16 -mode qix



AddToMenu "Screensaver" "Rotor %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode rotor
AddToMenu "Screenlock" "Rotor %mini-lock.xpm%" Exec xlock -nice -16 -mode rotor



AddToMenu "Screensaver" "Shape %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode shape
AddToMenu "Screenlock" "Shape %mini-lock.xpm%" Exec xlock -nice -16 -mode shape



AddToMenu "Screensaver" "Slip %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode slip
AddToMenu "Screenlock" "Slip %mini-lock.xpm%" Exec xlock -nice -16 -mode slip



AddToMenu "Screensaver" "Sphere %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode sphere
AddToMenu "Screenlock" "Sphere %mini-lock.xpm%" Exec xlock -nice -16 -mode sphere



AddToMenu "Screensaver" "Spiral %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode spiral
AddToMenu "Screenlock" "Spiral %mini-lock.xpm%" Exec xlock -nice -16 -mode spiral



AddToMenu "Screensaver" "Spline %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode spline
AddToMenu "Screenlock" "Spline %mini-lock.xpm%" Exec xlock -nice -16 -mode spline



AddToMenu "Screensaver" "Star %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode star
AddToMenu "Screenlock" "Star %mini-lock.xpm%" Exec xlock -nice -16 -mode star



AddToMenu "Screensaver" "S&warm %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode swarm
AddToMenu "Screenlock" "S&warm %mini-lock.xpm%" Exec xlock -nice -16 -mode swarm



AddToMenu "Screensaver" "Swirl %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode swirl
AddToMenu "Screenlock" "Swirl %mini-lock.xpm%" Exec xlock -nice -16 -mode swirl



AddToMenu "Screensaver" "Tri %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode tri
AddToMenu "Screenlock" "Tri %mini-lock.xpm%" Exec xlock -nice -16 -mode tri



AddToMenu "Screensaver" "Triangle %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode triangle
AddToMenu "Screenlock" "Triangle %mini-lock.xpm%" Exec xlock -nice -16 -mode triangle



AddToMenu "Screensaver" "Turtle %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode turtle
AddToMenu "Screenlock" "Turtle %mini-lock.xpm%" Exec xlock -nice -16 -mode turtle



AddToMenu "Screensaver" "Wator %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode wator
AddToMenu "Screenlock" "Wator %mini-lock.xpm%" Exec xlock -nice -16 -mode wator



AddToMenu "Screensaver" "Wire %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode wire
AddToMenu "Screenlock" "Wire %mini-lock.xpm%" Exec xlock -nice -16 -mode wire



AddToMenu "Screensaver" "World %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode world
AddToMenu "Screenlock" "World %mini-lock.xpm%" Exec xlock -nice -16 -mode world



AddToMenu "Screensaver" "Worm %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode worm
AddToMenu "Screenlock" "Worm %mini-lock.xpm%" Exec xlock -nice -16 -mode worm



AddToMenu "Screensaver" "Blank %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode blank
AddToMenu "Screenlock" "Blank %mini-lock.xpm%" Exec xlock -nice -16 -mode blank



AddToMenu "Screensaver" "Random %mini-ssave.xpm%" Exec xlock -nolock -nice -16 -mode random
AddToMenu "Screenlock" "Random %mini-lock.xpm%" Exec xlock -nice -16 -mode random


  




#
# This defines the most common window operations
#


*Window-OpsButtonsRows 1
*Window-OpsButtonsFore black
*Window-OpsButtonsBack grey51
AddToMenu Window-Ops "Window-Ops Button Bar%mini-modules.xpm%" Module FvwmButtons Window-OpsButtons


#At least give it a title

AddToMenu Window-Ops "" Nop


# Shortcuts: MRAL H/I SXTW DCK BPWUL F

AddToMenu Window-Ops "&Move%mini-move.xpm%" Function Move-and-Raise

*Window-OpsButtons(Icon mini-move.xpm, Action "Function Move-and-Raise")



AddToMenu Window-Ops "&Resize%mini-resize.xpm%" Function Resize-or-Raise

*Window-OpsButtons(Icon mini-resize.xpm, Action "Function Resize-or-Raise")



AddToMenu Window-Ops "R&aise%mini-raise.xpm%" Raise

*Window-OpsButtons(Icon mini-raise.xpm, Action "Raise")



AddToMenu Window-Ops "&Lower%mini-lower.xpm%" Lower

*Window-OpsButtons(Icon mini-lower.xpm, Action "Lower")



AddToMenu Window-Ops "&Hide/Restore%mini-iconify.xpm%" Iconify

*Window-OpsButtons(Icon mini-iconify.xpm, Action "Iconify")



AddToMenu Window-Ops "&Stick/Unstick%mini-stick.xpm%" Stick

*Window-OpsButtons(Icon mini-stick.xpm, Action "Stick")



AddToMenu Window-Ops "Ma&ximize/Reset" Maximize 100 100





AddToMenu Window-Ops "Maximize &Tall/Reset%mini-maxtall.xpm%" Maximize 0 95

*Window-OpsButtons(Icon mini-maxtall.xpm, Action "Maximize 0 95")



AddToMenu Window-Ops "Maximize &Wide/Reset%mini-maxwide.xpm%" Maximize 100 0

*Window-OpsButtons(Icon mini-maxwide.xpm, Action "Maximize 100 0")


AddToMenu Window-Ops "" Nop

AddToMenu Window-Ops "&Delete" Delete





AddToMenu Window-Ops "&Close%mini-cross.xpm%" Close

*Window-OpsButtons(Icon mini-cross.xpm, Action "Close")



AddToMenu Window-Ops "&Kill%mini-bomb.xpm%" Destroy

*Window-OpsButtons(Icon mini-bomb.xpm, Action "Destroy")


AddToMenu Window-Ops "" Nop

AddToMenu Window-Ops "Scroll&Bar%mini-scroll-arrows.xpm%" Module FvwmScroll 2 2

*Window-OpsButtons(Icon mini-scroll-arrows.xpm, Action "Module FvwmScroll 2 2")


#xvwd not found

AddToMenu Window-Ops "Capture &Windows" FvwmForm Capture





AddToMenu Window-Ops "Clean-&Up Module%mini-pencil.xpm%" Module FvwmClean

*Window-OpsButtons(Icon mini-pencil.xpm, Action "Module FvwmClean")



AddToMenu Window-Ops "Window &List Module%mini-windows.xpm%" Module FvwmWinList

*Window-OpsButtons(Icon mini-windows.xpm, Action "Module FvwmWinList")


AddToMenu Window-Ops "" Nop

AddToMenu Window-Ops "Switch to..." WindowList





AddToMenu Window-Ops "Re&fresh Screen%mini-ray.xpm%" Refresh

*Window-OpsButtons(Icon mini-ray.xpm, Action "Refresh")



#
# A trimmed down version of "Window-Ops", good for binding to decorations
#
# I don't want a button bar for this, since it's just a boiled down
# version of Window-Ops for binding to decorations

# Shortcuts: H/I MSNXCK 
AddToMenu "Window-Ops-Basic" 
+ "&Move %mini-move.xpm%"	Move-or-Raise
+ "&Size %mini-resize.xpm%" Resize-or-Raise
+ "Mi&nimize %mini-iconify.xpm%" Iconify 1
+ "Ma&ximize"       		Maximize 100 100
+ ""                		Nop
+ "&Close %mini-cross.xpm%"	Close
+ "&Kill %mini-bomb.xpm%" 	Destroy


# .fvwm2rc.programs sets up the user's menus for applications, etc.
# $Id: .fvwm2rc.programs,v 1.23 1996/06/13 22:59:59 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.menus, which was in turn
# included by .fvwm2rc.m4

###########################################################################

#
# Many of the program definitions below still need good icons.
# I'd love to see a standard collection of icons, and, even better,
# people start including a mini and a full-size icon for their programs
# with their distributions.  We'd have to pick a limited colormap
# (32 colors or so) to use, of course, but then this could be 
# automated even further.
#

# There are two main approaches to defining programs:
# 1) Use DefineProgram, giving <AppMenuType> each time
#     This can be redundant and error-prone if you are simply
#     creating a menu listing all applications belonging to the
#     same menu.  However, it is very general and the right way
#     to do it if you're simply defining all the programs in a certain
#     location or path.
# 2) Use DefineProgramLM, which just uses the Last Menu type
#     that you added as the type of the application you're adding.
#     This is what I do below, and is nice since it makes changing
#     an application's type as simple as moving it from one menu
#     section to another, without any editing.

# To figure out what xpm files are used by a configuration, 
# use something like:
# perl -ne < /tmp/fvwmrca08712 'if (/[ %]([^ %]+\.xpm)/) { print "$1\n"; }' 


# Might find this macro handy -- it's defined in .fvwm2rc.m4
#StartProgramIn{Xterm,ColorXterm,Rxvt}(<prg-name-and-options>,<title>,
#                           <x-class-for-resources>

#DefineProgram  <AppMenuType> <TitleName> <MiniIcon> <Icon> <ExecCmdName>
# MiniIcon == test means use mini-test.xpm
# Icon == test means use test.xpm
#
# If MiniIcon is not given, no button will be generated for that program
# If Icon is not given, the title of the program will appear in the big
# button instead However, if an icon is given that can't be found,
# you'll get a blank button #
#
# DefineProgram only includes the program if it can be found in the path
# of the environment used to start fvwm-- note that this may be set from
# .xinitrc or .xsession, and not your shell.... be sure to source
# /etc/profile or /etc/env or whatever from there.  Note, however, that
# if the parameters you give to the program make it bail, there still
# might be a problem with a button not seeming to work.  Check out
# .FVWM2-errors


###########################################################################
#
# Games
#

#If you don't have many of these games, you can comment out corresponding
# MenuAndButtonEntryLM,AddNewMenuAndButtonBar pairs to eliminate that sub-menu
# You'll probably want to change the AddNewMenuAndButtonBar command to a 
# `SetCurrentMenu(Games)' command.
# eg.  You don't have any of the "Hockeys" games and the empty popupmenu bothers
# you.  Comment out (put a '#' in front of) the `MenuAndButtonEntryLM(&Hockeys,....)' line
# below, then change the line further below from `AddNewMenuAndButtonBar(GamesHockeyEtc)'
# to `SetCurrentMenu(Games)'
# This could be nicer if we had RemoveFromMenu commands in fvwm2



*GamesButtonsRows 1
*GamesButtonsFore black
*GamesButtonsBack grey51
AddToMenu Games "Games Button Bar%mini-modules.xpm%" Module FvwmButtons GamesButtons


#At least give it a title

AddToMenu Games "" Nop



AddToMenu Games "&Arcade" Popup GamesArcade





AddToMenu Games "&Puzzles" Popup GamesPuzzles





AddToMenu Games "&Toys" Popup GamesToys





AddToMenu Games "&Hockeys" Popup GamesHockeyEtc




AddToMenu Games "" Nop

#xboard not found
#spider not found
#xlander not found
#xmahjongg not found
#xvier not found
#xpat2 not found
#xmorph not found
#xevil not found
#xbill not found
#xbl not found
#xgammon not found



*GamesArcadeButtonsRows 1
*GamesArcadeButtonsFore black
*GamesArcadeButtonsBack grey51
AddToMenu GamesArcade "GamesArcade Button Bar%mini-modules.xpm%" Module FvwmButtons GamesArcadeButtons


#At least give it a title

AddToMenu GamesArcade "" Nop


#xtetris not found
#xhextris not found
#xboing not found
#xjewel not found
#xpyraminx not found
#xdoom not found
#xchomp not found
#xgal not found



*GamesPuzzlesButtonsRows 1
*GamesPuzzlesButtonsFore black
*GamesPuzzlesButtonsBack grey51
AddToMenu GamesPuzzles "GamesPuzzles Button Bar%mini-modules.xpm%" Module FvwmButtons GamesPuzzlesButtons


#At least give it a title

AddToMenu GamesPuzzles "" Nop


#xcubes not found
#xoct not found
#xmball not found
#xrubik not found
#xdino not found



*GamesToysButtonsRows 1
*GamesToysButtonsFore black
*GamesToysButtonsBack grey51
AddToMenu GamesToys "GamesToys Button Bar%mini-modules.xpm%" Module FvwmButtons GamesToysButtons


#At least give it a title

AddToMenu GamesToys "" Nop



#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xeyes
#'))dnl
Style "xeyes" TitleIcon mini-eyes.xpm
AddToMenu GamesToys "X&eyes%mini-eyes.xpm%" Exec xeyes

*GamesToysButtons(Icon mini-eyes.xpm, Action 'Exec "xeyes" xeyes')





#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for maze
#'))dnl
Style "maze" TitleIcon mini-maze.xpm
AddToMenu GamesToys "&Maze%mini-maze.xpm%" Exec maze

*GamesToysButtons(Icon mini-maze.xpm, Action 'Exec "maze" maze')





#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xlogo
#'))dnl
Style "xlogo" TitleIcon mini-bx2.xpm
AddToMenu GamesToys "Xl&ogo%mini-bx2.xpm%" Exec xlogo

*GamesToysButtons(Icon mini-bx2.xpm, Action 'Exec "xlogo" xlogo')




#xroach not found
#xfractint_in_an_xterm not found
#xearth not found
#xfishtank not found
#xmountains not found
#xsnow not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for blitspin
#'))dnl
AddToMenu GamesToys "&Blitspin" Exec blitspin









*GamesHockeyEtcButtonsRows 1
*GamesHockeyEtcButtonsFore black
*GamesHockeyEtcButtonsBack grey51
AddToMenu GamesHockeyEtc "GamesHockeyEtc Button Bar%mini-modules.xpm%" Module FvwmButtons GamesHockeyEtcButtons


#At least give it a title

AddToMenu GamesHockeyEtc "" Nop


#xcarrom not found
#xpool not found
#xsnooker not found
#xcannon not found
#xcurling not found
#xhockey not found

###########################################################################
# Applications
#



*ApplicationsButtonsRows 1
*ApplicationsButtonsFore black
*ApplicationsButtonsBack grey51
AddToMenu Applications "Applications Button Bar%mini-modules.xpm%" Module FvwmButtons ApplicationsButtons


#At least give it a title

AddToMenu Applications "" Nop



#redbaron not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for grail 2>/dev/null
#'))dnl
AddToMenu Applications "&Grail" Exec grail 2>/dev/null






#netscape not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xterm -T Pine -n Pine -name pinexterm -e pine
#'))dnl
Style "xterm" TitleIcon mini-letter.xpm
AddToMenu Applications "&Pine%mini-letter.xpm%" Exec xterm -T Pine -n Pine -name pinexterm -e pine

*ApplicationsButtons(Icon mini-letter.xpm, Action 'Exec "xterm" xterm -T Pine -n Pine -name pinexterm -e pine')





#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for emacs
#'))dnl
Style "emacs" TitleIcon mini-edit.xpm
AddToMenu Applications "&Emacs%mini-edit.xpm%" Exec emacs

*ApplicationsButtons(Icon mini-edit.xpm, Action 'Exec "emacs" emacs')




#answerbook not found
#ghostview not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xdvi
#'))dnl
Style "xdvi" TitleIcon mini-doc.xpm
AddToMenu Applications "X&Dvi%mini-doc.xpm%" Exec xdvi

*ApplicationsButtons(Icon mini-doc.xpm, Action 'Exec "xdvi" xdvi')




#xv not found
#textedit not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xedit
#'))dnl
Style "xedit" TitleIcon mini-edit.xpm
AddToMenu Applications "Xedit%mini-edit.xpm%" Exec xedit

*ApplicationsButtons(Icon mini-edit.xpm, Action 'Exec "xedit" xedit')




#gnuplot_in_an_xterm not found
#xfig not found
#xpaint not found
#debugger not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xxgdb
#'))dnl
Style "xxgdb" TitleIcon mini-bug2.xpm
AddToMenu Applications "Xxgd&b%mini-bug2.xpm%" Exec xxgdb

*ApplicationsButtons(Icon mini-bug2.xpm, Action 'Exec "xxgdb" xxgdb')





#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xterm -T GDB -n GDB -name gdbxterm -e gdb
#'))dnl
Style "xterm" TitleIcon mini-bug2.xpm
AddToMenu Applications "gdb%mini-bug2.xpm%" Exec xterm -T GDB -n GDB -name gdbxterm -e gdb

*ApplicationsButtons(Icon mini-bug2.xpm, Action 'Exec "xterm" xterm -T GDB -n GDB -name gdbxterm -e gdb')




#xwpe not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for arena
#'))dnl
AddToMenu Applications "Arena Browser" Exec arena






#xlispstat_in_an_xterm not found
#basic_in_an_xterm not found
#irc_in_an_xterm not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xterm -T Minicom -n Minicom -name minicomxterm -e minicom -c on 
#'))dnl
AddToMenu Applications "&Minicom" Exec xterm -T Minicom -n Minicom -name minicomxterm -e minicom -c on 







#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xterm -T News (tin) -n News (tin) -name tinxterm -e tin 
#'))dnl
AddToMenu Applications "&Tin" Exec xterm -T News (tin) -n News (tin) -name tinxterm -e tin 






#trn_in_an_xterm not found
#athena not found
#xgopher not found
#xpdf not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xjed
#'))dnl
AddToMenu Applications "X&jed" Exec xjed







#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xedit
#'))dnl
AddToMenu Applications "Xedit" Exec xedit







###########################################################################
#
# Utilities
#



*UtilitiesButtonsRows 1
*UtilitiesButtonsFore black
*UtilitiesButtonsBack grey51
AddToMenu Utilities "Utilities Button Bar%mini-modules.xpm%" Module FvwmButtons UtilitiesButtons


#At least give it a title

AddToMenu Utilities "" Nop



#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for control-panel
#'))dnl
AddToMenu Utilities "&Control Panel" Exec control-panel







#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for glint
#'))dnl
AddToMenu Utilities "&Glint" Exec glint







#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xterm -cr blue
#'))dnl
Style "xterm" TitleIcon mini-sh1.xpm
AddToMenu Utilities "Color &XTerm%mini-sh1.xpm%" Exec xterm -cr blue

*UtilitiesButtons(Icon mini-sh1.xpm, Action 'Exec "xterm" xterm -cr blue')





#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xman
#'))dnl
Style "xman" TitleIcon mini-book1.xpm
AddToMenu Utilities "&Manual pages%mini-book1.xpm%" Exec xman

*UtilitiesButtons(Icon mini-book1.xpm, Action 'Exec "xman" xman')





#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xcalc
#'))dnl
Style "xcalc" TitleIcon mini-calc.xpm
AddToMenu Utilities "XCa&lc%mini-calc.xpm%" Exec xcalc

*UtilitiesButtons(Icon mini-calc.xpm, Action 'Exec "xcalc" xcalc')




#ical not found
#DefineProgramLM(&Ical,clock,calendar.next,ical)
#DefineProgramLM(&Plan,clock,calendar.next,plan)
#filemgr not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xfm
#'))dnl
Style "xfm" TitleIcon mini-filemgr.xpm
AddToMenu Utilities "X&fm%mini-filemgr.xpm%" Exec xfm

*UtilitiesButtons(Icon mini-filemgr.xpm, Action 'Exec "xfm" xfm')




#xftp not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xmag
#'))dnl
Style "xmag" TitleIcon mini-zoom.xpm
AddToMenu Utilities "Ma&gnifying glass%mini-zoom.xpm%" Exec xmag

*UtilitiesButtons(Icon mini-zoom.xpm, Action 'Exec "xmag" xmag')





#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xload
#'))dnl
Style "xload" TitleIcon mini-run.xpm
AddToMenu Utilities "XLo&ad%mini-run.xpm%" Exec xload

*UtilitiesButtons(Icon mini-run.xpm, Action 'Exec "xload" xload')




#xgrab not found
#xcolormap not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xfontsel
#'))dnl
AddToMenu Utilities "Font&sel" Exec xfontsel







#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for editres
#'))dnl
AddToMenu Utilities "&Editres" Exec editres







#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xclipboard
#'))dnl
AddToMenu Utilities "Clip&board" Exec xclipboard






#xosview not found

#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xclock
#'))dnl
AddToMenu Utilities "Cloc&k" Exec xclock







#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xbiff -bg grey76
#'))dnl
AddToMenu Utilities "XBiff" Exec xbiff -bg grey76







#FIX: not quite right
#ifelse(eval(5 != 5),`0',errprint(`Not 5 args to DefineProgram for xev
#'))dnl
AddToMenu Utilities "Xev" Exec xev









*MultimediaButtonsRows 1
*MultimediaButtonsFore black
*MultimediaButtonsBack grey51
AddToMenu Multimedia "Multimedia Button Bar%mini-modules.xpm%" Module FvwmButtons MultimediaButtons


#At least give it a title

AddToMenu Multimedia "" Nop


#xmix not found
#xmixer not found
#workman not found
#xplaycd not found
#tracker not found
#xplaymidi not found
#xmplay not found



# .fvwm2rc.hostmenus sets up the various menus for working w/ hosts
# $Id: .fvwm2rc.hostmenus,v 1.8 1996/06/11 01:33:01 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.menus, which was in turn
# included by .fvwm2rc.m4



AddToMenu Hosts "Hosts" Title


AddToMenu Hosts "&Denali%mini-display.xpm%" XTermOtherHost denali denali

AddToMenu Hosts "&Monarch%mini-display.xpm%" XTermOtherHost monarch monarch

AddToMenu Hosts "&Oz%mini-display.xpm%" XTermOtherHost oz oz



# Continues the "Hosts" menu from above.
AddToMenu Hosts "" Nop
+ "&Xrsh" FvwmForm Xrsh
+ "&Rlogin" FvwmForm Rlogin


###########################################################################
# Local Variables:
# rm-trailing-spaces: t
# page-delimiter: "^#####"
# End:


# Module settings

# $Id: .fvwm2rc.modules,v 1.8 1996/06/13 21:22:39 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.m4

##########################################################################
#
# Definitions used by the modules
#

###########################################################################
##### Pager

*FvwmPagerBack grey51
*FvwmPagerFore black
*FvwmPagerHilight navyblue
#*FvwmPagerFont -BASIC_FONT-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPagerFont none
*FvwmPagerGeometry +0+0
*FvwmPagerDeskTopScale 40
*FvwmPagerLabel 0 Top
*FvwmPagerLabel 1 Bottom
*FvwmPagerSmallFont 5x8

Style "FvwmPager"	StaysOnTop,Sticky, WindowListSkip,CirculateSkip


###########################################################################
##### FvwmButtons

*FvwmButtonsFore black
*FvwmButtonsBack grey51
#*FvwmButtonsFont BASIC_FONT-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmButtonsFont None

*FvwmButtonsGeometry 120x40-0-29
# Layout: specify rows or columns, not both
*FvwmButtonsRows 1

# Define the buttons to use.....

*FvwmButtons(Swallow XLoad 'Exec nice -16 xload -nolabel -geometry 32x20+0+0 -bg grey60 -update 5')
*FvwmButtons(2x1,Swallow "FvwmPager" "FvwmPager 0 1")

Style "FvwmButtons"	StaysOnTop,Sticky, WindowListSkip,CirculateSkip, BorderWidth 0


###########################################################################
###### PowerButtons (a button bar at the bottom of the screen)

*PowerButtonsRows 1
*PowerButtonsGeometry -120-29
*PowerButtonsFore black
*PowerButtonsBack grey51
*PowerButtons(Icon mini-display.xpm, Action 'Exec "xterm" xterm')
*PowerButtons(Icon mini-book1.xpm, Action 'Exec "xman" xman')

Style "PowerButtons" StaysOnTop,Sticky

###########################################################################
##### NoClutter

*FvwmNoClutter 3600 Iconify 1
*FvwmNoClutter 86400 Delete
*FvwmNoCLutter 172800 Destroy


###########################################################################
##### Identify
*FvwmIdentBack #000080
*FvwmIdentFore Yellow
*FvwmIdentFont -*helvetica-medium-r-*-*-12-*-*-*-*-*-*-*


###########################################################################
##### FvwmWinList
*FvwmWinListBack #c3c3c3
*FvwmWinListFore Black
*FvwmWinListFont -*helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1
        
###########################################################################
##### FvwmTaskBar
Style "FvwmTaskBar" NoTitle,BorderWidth 2,HandleWidth 2,Sticky,StaysOnTop,WindowListSkip,CirculateSkip

*FvwmTaskBarGeometry +0-0
*FvwmTaskBarFore Black
*FvwmTaskBarBack #c3c3c3
*FvwmTaskBarFont -*helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmTaskBarSelFont -*helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
*FvwmTaskBarAction Click1 Iconify -1,Raise,Focus
*FvwmTaskBarAction Click2 Module "FvwmIdent" FvwmIdent
*FvwmTaskBarAction Click3 Resize
*FvwmTaskBarUseSkipList
#*FvwmTaskBarOnlyIcons  gjb@cs.duke.edu wants to add this option
*FvwmTaskBarAutoStick
*FvwmTaskBarStartName Start
*FvwmTaskBarStartMenu StartMenu
*FvwmTaskBarStartIcon mini-redhat.xpm
*FvwmTaskBarBellVolume 10
*FvwmTaskBarMailBox /var/spool/mail/USER
*FvwmTaskBarClockFormat %a %B %d %H:%M

###########################################################################
#####FvwmAudio

*FvwmAudioDir /usr/local/lib/sounds
*FvwmAudioPlayCmd play
*FvwmAudioDelay 0

# User must add a new column to each line below, specifying
# a sound file from SOUND_DIR (define-d in .fvwm2rc-defines)

*FvwmAudio startup 
*FvwmAudio shutdown 
*FvwmAudio unknown 
*FvwmAudio add_window 
*FvwmAudio raise_window 
*FvwmAudio lower_window 
*FvwmAudio focus_change_window 
*FvwmAudio destroy_window 
*FvwmAudio iconify 
*FvwmAudio deiconify 
*FvwmAudio toggle_paging 
*FvwmAudio new_page 
*FvwmAudio new_desk 
*FvwmAudio configure_window 
*FvwmAudio window_name 
*FvwmAudio icon_name 
*FvwmAudio res_class
*FvwmAudio res_name
*FvwmAudio end_windowlist

###########################################################################
*FvwmScrollFore gray76
*FvwmScrollBack gray51

###########################################################################
#
# FvwmIconBox
#

*FvwmIconBoxIconBack    #cfcfcf
*FvwmIconBoxIconHiFore  black
*FvwmIconBoxIconHiBack  LightSkyBlue
*FvwmIconBoxBack        LightSlateGray
*FvwmIconBoxGeometry    6x1+0-0
*FvwmIconBoxMaxIconSize 64x50
*FvwmIconBoxFont        -adobe-helvetica-bold-r-normal--10-100-75-75-p-57-iso8859-1
*FvwmIconBoxSortIcons
*FvwmIconBoxPadding     4
*FvwmIconBoxLines       6
*FvwmIconBoxPlacement   Left Top
#*FvwmIconBoxPixmap      
*FvwmIconBoxHideSC 	Horizontal
*FvwmIconBoxSortIcons
#
# mouse bindings
#
*FvwmIconBoxMouse       1       Click           RaiseLower
*FvwmIconBoxMouse       1       DoubleClick     Iconify
*FvwmIconBoxMouse       2       Click           Iconify -1, Focus
*FvwmIconBoxMouse       3       Click           Module "FvwmIdent" FvwmIdent

*FvwmIconBoxSBWidth	2

 #
# Key bindings
#
*FvwmIconBoxKey         r       RaiseLower
*FvwmIconBoxKey         space   Iconify
*FvwmIconBoxKey         d       Close
#
# FvwmIconBox built-in functions
#
*FvwmIconBoxKey         n       
*FvwmIconBoxKey         p       Prev
*FvwmIconBoxKey         h       Left
*FvwmIconBoxKey         j       Down
*FvwmIconBoxKey         k       Up
*FvwmIconBoxKey         l       Right
#
# Icon file spcifications
#
#*FvwmIconBox            "Fvwm*"         -

############################################################################
#
# FvwmBanner
#

Style "FvwmBanner"   	StaysOnTop,Sticky, WindowListSkip,CirculateSkip, BorderWidth 0, ClickToFocus

# $Id: .fvwm2rc.forms,v 1.5 1996/06/13 22:10:38 gjb Exp $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.modules, which was included
# by .fvwm2rc.m4
#

# Not all of the forms listed below are used.
# More work needs to be done, but the FvwmForm module is a moving
# (and greatly improving) target, so this work will have to wait
#FormText(<Form>,[{left,center,expand}],`<text>')


#FormInput(<Form>,{left,center,expand},`<prompt>',<variable>,<length>,`<initial-value>')


# Note: These macros gets undefine-d at end of this file.

############################################################################
#
# FvwmForm LogoutVerify -- Modified from FvwmForm man page.
#

*LogoutVerifyGrabServer
*LogoutVerifyWarpPointer
*LogoutVerifyFont          *helvetica-bold-r*24*
*LogoutVerifyButtonFont    *helvetica*medium-r*12*
*LogoutVerifyFore          black
*LogoutVerifyBack          grey76
*LogoutVerifyItemFore      black
*LogoutVerifyItemBack      grey51
# begin items
*LogoutVerifyLine          center
*LogoutVerifyText         "Do you really want to logout?"
*LogoutVerifyLine          expand
*LogoutVerifyButton        quit      "Yes" Y
*LogoutVerifyCommand       Quit
*LogoutVerifyButton        quit      "Cancel" 
*LogoutVerifyCommand       Nop
*LogoutVerifyButton        quit      "Restart Fvwm" R
*LogoutVerifyCommand       Restart
# Fvwm window style
Style "LogoutVerify" NoHandles, StaysOnTop,Sticky

###############################################################################
#
# FvwmForm About -- Fvwm's About Box
#

*AboutWarpPointer
*AboutFore		black
*AboutBack		grey76
*AboutItemFore      black
*AboutItemBack      grey51
*AboutFont		*helvetica-bold-r-*-*-12-*-*-*-*-*-*-*

*AboutLine		center
*AboutText		"Fvwm Configuration"
*AboutLine		center
*AboutText		"(C) 1996 By Greg J. Badros"

*AboutLine left
*AboutText "Serverhost=SERVERHOST, Clienthost=CLIENTHOST"
*AboutLine left
*AboutText "Hostname=HOSTNAME, Ostype=OSTYPE, User=USER"
*AboutLine left
*AboutText "Version=VERSION, Revision=REVISION"
*AboutLine left
*AboutText "Vendor=VENDOR, Release=RELEASE"
*AboutLine left
*AboutText "Width=1024, Height=HEIGHT"
*AboutLine left
*AboutText "X_Resolution=X_RESOLUTION, Y_Resolution=Y_RESOLUTION"
*AboutLine left
*AboutText "Planes=PLANES, Class=CLASS, Color=COLOR"
*AboutLine left
*AboutText "Fvwm_Version=FVWM_VERSION, Options=OPTIONS"
*AboutLine left
*AboutText "Fvwmdir=FVWMDIR"

*AboutLine		center
*AboutButton		quit	"Dismiss"

Style "About" NoButton 2, NoButton 4, NoButton 6, StaysOnTop,Sticky

###########################################################################
#
# FvwmForm Xrsh -- Start a program on a remote machine
#

*XrshFont         *helvetica*medium-r*12*
*XrshButtonFont   fixed
*XrshFore         black
*XrshBack         grey76
*XrshItemFore          black
*XrshItemBack          grey51
# begin items
*XrshLine         center
*XrshText         "Xrsh"
*XrshFont         *helvetica*medium-r*n*12*
*XrshLine         expand
*XrshSelection    Host single
*XrshChoice denali denali off "Denali"
*XrshChoice monarch monarch off "Monarch"
*XrshChoice oz oz off "Oz"

*XrshLine         expand


*XrshButton	quit "emacs" E
*XrshCommand    Exec $(denali?xon denali)$(monarch?xon monarch)$(oz?xon oz) emacs

*XrshButton	quit "athena" A
*XrshCommand    Exec $(denali?xon denali)$(monarch?xon monarch)$(oz?xon oz) athena

*XrshButton	quit "xload" X
*XrshCommand    Exec $(denali?xon denali)$(monarch?xon monarch)$(oz?xon oz) xload

*XrshButton	quit "redbaron" R
*XrshCommand    Exec $(denali?xon denali)$(monarch?xon monarch)$(oz?xon oz) redbaron

*XrshButton	quit "netscape" N
*XrshCommand    Exec $(denali?xon denali)$(monarch?xon monarch)$(oz?xon oz) netscape

*XrshButton	quit "xterm" T
*XrshCommand    Exec $(denali?xon denali)$(monarch?xon monarch)$(oz?xon oz) xterm

*XrshButton       quit "Cancel" ^[
*XrshCommand      Nop

###########################################################################
#
# FvwmForm Rlogin -- Rlogin to an arbitrary remote machine
#

*RloginWarpPointer
*RloginFont         *helvetica*medium-r*12*
*RloginButtonFont   fixed
*RloginInputFont    *helvetica*medium-r*12*
*RloginFore         black
*RloginBack         grey76
*RloginItemFore     black
*RloginItemBack     grey51
# begin items
*RloginLine         center
*RloginText         "Login to Remote Host"
*RloginLine center
*RloginText "Host:"
*RloginInput HostName 20 ""
*RloginLine         center
*RloginSelection    UserSel   single
*RloginChoice       Default   Default   on   "USER"
*RloginChoice       Custom    Custom    off  "Username:"
*RloginInput        UserName  10   ""
*RloginLine         expand
*RloginButton       quit "Login" ^M
*RloginCommand Exec xterm  -T xterm@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
*RloginButton       restart   "Clear"
*RloginCommand Beep
*RloginButton       quit "Cancel"
*RloginCommand Nop

###########################################################################
#
# FvwmForm TalkForm FvwmTalk module which dissappears after use
# (Was: MyTalk & MyFvwmTalk from Dave Goldberg)
#

*TalkFormWarpPointer
*TalkFormFont *helvetica*medium-r*12*
*TalkFormButtonFont *helvetica*medium-r*12*
*TalkFormInputFont BASIC-FONT*medium-r*12*
*TalkFormFore black
*TalkFormBack grey76
*TalkFormItemFore black
*TalkFormItemBack grey51
*TalkFormLine center
*TalkFormText "Fvwm Function"
*TalkFormInput Func 40 ""
*TalkFormLine expand
*TalkFormButton quit "Run" ^M
*TalkFormCommand $(Func)
*TalkFormButton restart "Clear" ^R
*TalkFormButton quit "Cancel" ^C
*TalkFormCommand Nop

###########################################################################
#
# Capture Window (from man page)
#

*CaptureFont         *helvetica*medium-r*12*
*CaptureButtonFont   fixed
*CaptureInputFont    *helvetica*medium-r*12*
*CaptureLine        center
*CaptureText        "Capture Window"
*CaptureLine        left
*CaptureText        "File: "
*CaptureInput       file      25   "/tmp/Capture"
*CaptureLine        left
*CaptureText        "Printer: "
*CaptureInput       printer        20   "ps1"
*CaptureLine        expand
*CaptureSelection   PtrType   single
*CaptureChoice      PS   ps   on   "PostScript"
*CaptureChoice      Ljet ljet off  "HP LaserJet"
*CaptureLine        left
*CaptureText        "xwd options:"
*CaptureLine        expand
*CaptureSelection   Options   multiple
*CaptureChoice      Brd  -nobdrs   off  "No border"
*CaptureChoice      Frm  -frame    on   "With frame"
*CaptureChoice      XYZ  -xy  off  "XY "
 
###########################################################################
#
# FvwmForm AudioEvents
#
# This is incomplete in that it'd be cool if you could save your settings
# and reload them.... but I don't even use FvwmAudio, alas I can't
# concentrate on this for now

*AudioEventsFont         fixed
*AudioEventsButtonFont   fixed
*AudioEventsFore         black
*AudioEventsBack         grey76
*AudioEventsItemFore     black
*AudioEventsItemBack     grey51

*AudioEventsLine left
*AudioEventsText "startup"
*AudioEventsInput startup 50 "bud.au"

*AudioEventsText "shutdown"
*AudioEventsInput shutdown 50 ""
*AudioEventsLine left
*AudioEventsText "unknown"
*AudioEventsInput unknown 50 "doh.au"
*AudioEventsLine left
*AudioEventsText "add_window"
*AudioEventsInput add_window 50 "gong.wav"
*AudioEventsLine left
*AudioEventsText "raise_window"
*AudioEventsInput raise_window 50 "chimes.wav"
*AudioEventsLine left
*AudioEventsText "lower_window"
*AudioEventsInput lower_window 50 "beep1.wav"
*AudioEventsLine left
*AudioEventsText "focus_change_window"
*AudioEventsInput focus_change_window 50 "beep1.wav"
*AudioEventsLine left
*AudioEventsText "destroy_window"
*AudioEventsInput destroy_window 50 "splat.wav"
*AudioEventsLine left
*AudioEventsText "iconify"
*AudioEventsInput iconify 50 "splat.wav"
*AudioEventsLine left
*AudioEventsText "deiconify"
*AudioEventsInput deiconify 50 "ploop.au"
*AudioEventsLine left
*AudioEventsText "toggle_paging"
*AudioEventsInput toggle_paging 50 "fwop.au"
*AudioEventsLine left
*AudioEventsText "new_page"
*AudioEventsInput new_page 50 "beam_trek.au"
*AudioEventsLine left
*AudioEventsText "new_desk"
*AudioEventsInput new_desk 50 "beam_trek.au"
*AudioEventsLine left
*AudioEventsText "configure_window"
*AudioEventsInput configure_window 50 "huh.au"
*AudioEventsLine left
*AudioEventsText "window_name"
*AudioEventsInput window_name 50 "beep.au"
*AudioEventsLine left
*AudioEventsText "icon_name"
*AudioEventsInput icon_name 50 "beep.au"
*AudioEventsLine left
*AudioEventsText "res_class"
*AudioEventsInput res_class 50 "beep.au"
*AudioEventsLine left
*AudioEventsText "res_name"
*AudioEventsInput res_name 50 "beep.au"
*AudioEventsLine left
*AudioEventsText "end_windowlist"
*AudioEventsInput end_windowlist 50 "beep.au"
*AudioEventsLine expand
*AudioEventsButton quit "Quit" 
*AudioEventsButton nop "Apply" A
#FIX: Add the rest in here, if this works
*AudioEventsCommand *FvwmAudio raise_window $(raise_window)
*AudioEventsCommand *FvwmAudio lower_window $(lower_window)

###########################################################################





# User initialization

# $Id: .fvwm2rc.init,v 1.5 1996/06/13 18:51:59 gjb Exp gjb $
# Resource file for version >=2.0.42 of FVWM,
# the F? Virtual Window Manager
#
# .fvwm2rc 
# (C)1996 By Greg J. Badros <gjb@cs.duke.edu>
# You may use this file as specified under the GNU
# public license (GPL).
# I am not responsible for this file's use, misuse, or anything.
# Use at your own risk.
#
# This file is m4-included by .fvwm2rc.m4
#
###########################################################################
#
# Stuff to do at start-up
#

# SetupFunction gets run at Init and Restart

AddToFunc "SetupFunction"
+ "I" Exec xsetroot -solid cyan4
+ "I" Module FvwmTaskBar
+ "I" Module FvwmButtons

# EndSetupFunction gets run at Init and Restart, but after StartupFunction
# is executed for the Init case

AddToFunc "EndSetupFunction"
#+ "I" Next [!iconic CurrentScreen COLOR_XTERM] Focus
+ "I" CursorMove PctOfScreen(50,50)

# StartupFunction only gets run at Init, not at Restart.
# It is run after SetupFunction, but before EndSetupFunction
AddToFunc "StartupFunction"
+ "I" Exec xterm +ut -T "HOSTNAME-Main" -n "Main" -geometry +153+




#+ "I" Exec emacs -geometry 84x48-1+1
#+ "I" Exec COLOR_XTERM -geometry 80x22+1-BOTTOM_EDGE


#unclutter not found



#divert(-1)
#undivert

###########################################################################
# Local Variables:
# rm-trailing-spaces: t
# page-delimiter: "^#####"
# End:

